In this post Asp.Net jQuery Radio Button
set checked, we shall see on how to check a checkbox
using jQuery.
We can use the checked attribute
of the checkbox to set its state to checked as follows.
$('#radActive).attr('checked', true);
To set the checked status, on click of a
button uses the following script.
// Set CheckBox Status:
Checked
$('#cmdCheck').click(function(event) {
event.preventDefault();
$('#radActive).attr('checked', true);
});
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