Here is a quick tutorial on how to handle radion buttons using jQuery.
< input type="radio" name="empType" value="regular" /> Regular < input type="radio" name="empType" value="temporary" /> Temporary
Then the jQuery code: (assuming that you have already included the JS file in the header…)
$("input[@name='empType']").change( function() { if ($("input[@name='empType']:checked").val()) { alert($("input[@name='empType']:checked").val()); } } );
Too bad i didnt come across this blog before. Great stuff you got here. Thanks.
Hey I just wanted to tell about my website, UptMon.
It’s a tool for monitoring up- and response time for everything from websites to voice-over-IP services.
The user can choose to receive reports in case of failures, and much more!
The address is: http://uptmon.sytes.net
And it’s completely free!
//Alex
Nice post, you got some good points there – thank you.
Thanks for sharing!
if my field name is data[user][myradio], how to handle this?
Thanks