jquery-serialize-object icon indicating copy to clipboard operation
jquery-serialize-object copied to clipboard

Unwanted conversion of select box values from string to Infinity

Open danieliser opened this issue 6 years ago • 0 comments

We used this to parse a form that includes a select box of mailchimp list ids.

Recently one of our users reported strange issues, on investigation it was found that his list ID was something like this 52e999999

The JSON.parse(value); line is eating this converting it to an integer which in this case is returned as Infinity

I'm guessing for select fields it shouldn't be parsing it as json in general?

danieliser avatar Aug 02 '19 01:08 danieliser