You might try this plugin.
http://www.pengoworks.com/workshop/jquery/field.plugin.htm
That will help you with forms setter and getters. Then read this post...
working on a way to get list of attributes myself right now.
http://groups.google.com/group/jquery-en/browse_thread/thread/396f2aa00962aba6/45ed94a8a1bb2a66#45ed94a8a1bb2a66
John Farrar
Andrew B wrote:
I'm a raw newbie but have not found this particular question answered.
I have a series of dynamically generated radios each of which has
three possible values Y (yes) N (no) and M (maybe) and want to capture
mouse clicks and act on them depending on the value
for example
<td><input type="radio" name="Radio1" id="Radio1Y" value="Y" CHECKED></
td>
<td><input type="radio" name="Radio1" id="Radio1N" value="N"
></td>
<td><input type="radio" name="Radio1" id="Radio1M" value="M"
></td>
The following code placed in the ready function works fine.
$('input').filter(':radio').change(
function()
{
if ($(this).val()=="Y")
$('#alert').text("val was yes for " );
else
if ($(this).val()=="N")
$('#alert').text("val was No");
else
$('#alert').text("val was Maybe");
But what I want to do is pass to the name of the radio in the text
line (or ultimately to a php for acting upon).
Ultimately what I am seeking to do is to pass the value and the name
of the control to the PHP which will execute some SQL and return an OK
Ideas?