[jQuery] Field Plug-in Update: Added $("form").formHash() method....
I've updated my Field Plug-in with a new method called formHash():
http://jquery.com/plugins/project/field
The formHash() method allows you to easily grab all the values in your form
as a hash map/structure or you can set the fields in your form based upon a
hash map/structure of values.
The formHash() method is a perfect companion to AJAX JSON
operations--allowing you to easily fill in a form based upon a JSON packet.
Examples:
$("#formName").formHash();
Returns a hash map of all the form fields and their values.
$("#formName").formHash({"name": "Dan G. Switzer, II", "state": "OH"});
Returns the jQuery chain and sets the fields "name" and "state" with the
values "Dan G. Switzer, II" and "OH" respectively.
-Dan