]> source.dussan.org Git - jquery.git/commit
Integration of Mike Alsup's excellent form serialization code. The benefits are as...
authorJohn Resig <jeresig@gmail.com>
Wed, 5 Sep 2007 17:06:05 +0000 (17:06 +0000)
committerJohn Resig <jeresig@gmail.com>
Wed, 5 Sep 2007 17:06:05 +0000 (17:06 +0000)
commitf96bf1041553775a94c1034c97e253e350217173
treeec325ec45526f3caddac0157f98645ca7aaad64c
parentf28f199dc0a353135ef8b9afa2f3d25c6ffd2c75
Integration of Mike Alsup's excellent form serialization code. The benefits are as follows:

- New method: .serializeArray()
This returns an array of name/value pairs representing the contents of a form, or individual input elements.
- Enhancement: .serialize()
The results are correct now (as opposed to the mess from before), and allows you to serializes forms directly (rather than just the input elements).
- Enhancement: .val()
This now returns the correct value when dealing wih selects. Additionally, when dealing with multiple selects, it returns an array of values.

Based upon Mike's code:
http://malsup.com/jquery/form/comp/form.js

and test suite:
http://malsup.com/jquery/form/comp/test.html
build/test/index.html
src/ajax/ajax.js
src/ajax/ajaxTest.js
src/event/eventTest.js
src/jquery/coreTest.js
src/jquery/jquery.js
src/selector/selectorTest.js