Returns an object of name-value pairs that represents values in a form. It is able to nest values whose element's name has square brackets.
Example html:
<form> <input name="foo[bar]" value='2'/> <input name="foo[ced]" value='4'/> <form/>
$('form').formParams() //-> { foo:{bar:2, ced: 4} }
$.fn.formParams(convert) -> Object
{optional:Boolean}
True if strings that look like numbers and booleans should be converted. Defaults to true.
{Object}
An object of name-value pairs.
Returns an object of name-value pairs that represents values in a form. It is able to nest values whose element's name has square brackets.
Example html:
Example code: