Create an event for all of the RadioButton's GroupName in a form
I need to create a click event that when a radiobutton was
clicked/checked/ticked I need to know what is the value of that
radiobutton and what groupname does it belongs to.
$("input[name='tstProCon'], input[name='thsProCon'],
input[name='thProCon']").click(function () {
var myVal1 = $(this + ":checked").val();
alert(myVal1);
});
I used the above click event but it throws a jquery syntax error.
Please help.
No comments:
Post a Comment