jquery checkbox not checked code example
Example 1: jquery check if checkbox is not checked
if (!$("#checkboxID").is(":checked")) {
// do something if the checkbox is NOT checked
}
Example 2: jquery in checkbox checked
// Check a checkbox
$(selector).prop('checked', true);
// Un-check a checkbox
$(selector).prop('checked', false);
// Determine if checked or not
isChecked = $(selector).prop('checked');
Example 3: jquery check if all checkbox is not checked
$('#checkAll').click(function () {
$('input:checkbox').prop('checked', this.checked);
});