Thursday, July 5, 2012

Asp.Net jQuery checkbox set unchecked


In this post Asp.Net jQuery checkbox set unchecked, we shall see on how to uncheck a checkbox using jQuery.

We can use the checked attribute of the checkbox to set its state to un-checked as follows.
$('#chkStatus').attr('checked', false);

To set the checked status, on click of a button uses the following script.
// Set CheckBox Status : Checked
$('#cmdUnCheck’).click(function(event) {
    event.preventDefault();
    $('#chkStatus').attr('checked', false);
});


Search Flipkart Products:
Flipkart.com

No comments: