checked in jquery for checkbox code example

Example 1: jquery checkbox checked

$("checkbox").is(":checked")

Example 2: checkbox is checked jquery

$(your_checkbox).is(':checked');

Example 3: 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 4: check whether a checkbox is checked in jQuery

if ($('#grepperRocks').is(':checked')) {
	// this checkbox is checked
}