how to change status of checkbox using jquery code example
Example 1: how to change checkbox state in jquery
$('[name="SelectedGroup"]').prop('checked', true);
Example 2: change checkbox jquery alert
$('#checkbox1').mousedown(function() {
if (!$(this).is(':checked')) {
this.checked = confirm("Are you sure?");
$(this).trigger("change");
}
});