Skip to content

newlegendmedia/jquery.formParams

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

jquery.formParams

jQuery plugin for serializing forms to JS objects

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} }

About

jQuery plugin for serializing forms to JS objects

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%