In this post Asp.Net jQuery Get Values
of Radio Button, we shall see on how to get values which
are associated with the Radio Button controls using jQuery.
We can use the following
script to get the values of a Radio Button
On click of a button uses the following script.
// Get RadioButton Value
$('#cmdGetRadioButtonValue').click(function(event) {
event.preventDefault();
alert($('label[for='
+ $('#radActive').attr('id') + ']').html());
alert($('label[for='
+ $('#radInActive').attr('id') + ']').html());
});
To see a full example using jQuery and Radio Buttons refer to the post Asp.Net jQuery Radio Button Tutorial
Related Posts
No comments:
Post a Comment