Congratulations!

2007/7/3, Andy Matthews <[EMAIL PROTECTED]>:


Sounds awesome Dan!! Very promising.

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dan G. Switzer, II
Sent: Tuesday, July 03, 2007 10:51 AM
To: jquery-en@googlegroups.com
Subject: [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



Reply via email to