is checked jquery
snippet in javascript

How to check whether a checkbox is checked in jQuery?

user4865

//using plane javascript 
if(document.getElementById('on_or_off_checkbox').checked) {
    //I am checked
} 

//using jQuery
if($('#on_or_off_checkbox').is(':checked')){
    //I am checked
}

jquery if checkbox checked

user9901

$( "SELECTOR" ).attr( "checked" )  // Returns ‘true’ if present on the element, returns undefined if not present
$( "SELECTOR" ).prop( "checked" ) // Returns true if checked, false if unchecked.
$( "SELECTOR" ).is( ":checked" ) // Returns true if checked, false if unchecked.

jquery checkbox checked

user215

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

How do I check whether a checkbox is checked in jQuery?

user140

$('#' + id).is(":checked")

check whether a checkbox is checked in jQuery

user5327

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

is checked jquery

user841

.is(':checked')