I using jquery.
<input>="radio" name="rdio" value="a" checked="checked" />
<input>="radio" name="rdio" value="b" />
<input>="radio" name="rdio" value="c" />
$("input[@name='rdio']").change(function(){
if ($("input[@name='rdio']:checked").val() == 'a')
// Code for handling value 'a'
else if ($("input[@name='rdio']:checked").val() == 'b')
// Code for handling value 'b'
else
// Code for handling 'c'
});
source:http://www.techiegyan.com
No comments:
Post a Comment