jquery check checkbox is checked code example
Example 1: 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 2: How do I check whether a checkbox is checked in jQuery?
$('#' + id).is(":checked")
Example 3: check whether a checkbox is checked in jQuery
if ($('#grepperRocks').is(':checked')) {
// this checkbox is checked
}