jquery-serialize-object
jquery-serialize-object copied to clipboard
Converts HTML form into JavaScript object
Would it be possible to add a flag or default functionality that would convert `true` `false` `1` `0` to true or false respectively and numbers to stay as a number?...
Say you have three text inputs: ``` ``` When serializing this form, the first two fields are lost in the resulting object. I think the reason is in lines 62...
**How to reproduce** Use the following demo - http://jsfiddle.net/9xfdvLbL/ **Conditions** Typing some copy in the input text and by selecting one or more categories, you get: {"filtering":{"title":"john doe","categories":["1","3"]}} **Problem** When...
I got this form, with the following json structure: ``` javascript [{"name":"slots[1395086400]","value":"0"},{"name":"slots[1395086400]","value":"1"},{"name":"slots[1395090000]","value":"0"},{"name":"slots[1395090000]","value":"1"},{"name":"slots[1395172800]","value":"0"},{"name":"slots[1395172800]","value":"1"},{"name":"slots[1395176400]","value":"0"},{"name":"slots[1395176400]","value":"1"},{"name":"slots[1395259200]","value":"0"},{"name":"slots[1395259200]","value":"1"},{"name":"slots[1395262800]","value":"0"},{"name":"slots[1395262800]","value":"1"},{"name":"slots[1395345600]","value":"0"},{"name":"slots[1395345600]","value":"1"},{"name":"slots[1395349200]","value":"0"},{"name":"slots[1395349200]","value":"1"},{"name":"slots[1395432000]","value":"0"},{"name":"slots[1395432000]","value":"1"},{"name":"slots[1395435600]","value":"0"},{"name":"slots[1395435600]","value":"1"},{"name":"slots[1395518400]","value":"0"},{"name":"slots[1395518400]","value":"1"},{"name":"slots[1395522000]","value":"0"},{"name":"slots[1395522000]","value":"1"}]" ``` when calling serializeObject() on this form , this is what I get logged : ``` javascript Object...
Your plugin is exactly what I was looking for, but sometimes it's necessary to also set the form values from object, which would be reverse of this toJSON e.g. named...
Add option to use numeric keys.
I was trying to figure out why `serializeObject()` always returned an empty object when trying to serialize my form data. It turned out to be an issue with the [name...
Hi @macek , It is possible to add feature to include unchecked checkbox into the object or json result, something like ``` { "some_unchecked_checkbox" : false } ``` regards Ikhsan
As title, can we parse complex path-name like w3c suggested? http://www.w3.org/TR/2014/WD-html-json-forms-20140529/
I use Asp.net MVC, when I use the @Html.EditorFor (or CheckboxFor) the Razor view engine generates two inputs, a checkbox and a hidden field. Both of these have the same...