checkbox on change function jquery code example
Example 1: jQuery checkbox changed event
//jQuery listen for checkbox change
$("#myCheckBoxID").change(function() {
if(this.checked) {
//I am checked
}else{
//I'm not checked
}
});
Example 2: how to change checkbox state in jquery
$('[name="SelectedGroup"]').prop('checked', true);