jQuery.fn.formParams  function     

plugin: jquery/dom/form_params
test: qunit.html

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/>
Example code:
$('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.

© Jupiter IT - JavaScriptMVC Training and Support