Honestly Dan, I think this is the way that jQuery SHOULD work. If I call for
the val() of a form control, I shouldn't have to worry about whether it's a
radio button, or a text field. Obviously I can get the value of a specific
radio button, but just give me what's CURRENTLY selected.


andy 

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dan G. Switzer, II
Sent: Thursday, April 05, 2007 10:32 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] New Field Plug-in...


Last night I threw together a quick plug-in that can be used to get/set the
value of any form field. This works with checkbox, radio and select
elements--which the val() method doesn't handle.

I basically just took the core from an old JSAPI I wrote (qForms) and grab
the core getter and setters.

Anyway, I've got preview of the plug-in up at:
http://www.pengoworks.com/workshop/jquery/field.plugin.htm

My intention is too add some of the functionality that people like about
qForms into this plug-in as time permits.

I'm interested in hearing your feedback on this. 

-Dan


Reply via email to