Is there a bug with formHash() and radio buttons? Or am I missing the obvious. With this form
<form id="test" name="test" action=""> <input type="radio" name="foo" value="A" onchange="alert($ (this.form).formHash()['foo'])"> A <input type="radio" name="foo" value="B" onchange="alert($ (this.form).formHash()['foo'])"> B <input type="radio" name="foo" value="C" onchange="alert($ (this.form).formHash()['foo'])"> C </form> only the final item (C) displays a value when clicked on. $(#test/ [EMAIL PROTECTED]'foo']").getValue() works for all three choices, but I was hoping to use the hashmap in some form checking code. On Jul 3, 10:50 am, "Dan G. Switzer, II" <[EMAIL PROTECTED]> wrote: > I've updated my Field Plug-in with a new method calledformHash(): > > http://jquery.com/plugins/project/field > > TheformHash() 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. > > TheformHash() 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

