Answers for "get checkbox checked or not in jquery"

63

jquery checkbox is checked

//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
}
Posted by: Guest on July-19-2019
13

jquery checkbox checked value

if ($('#check_id').is(":checked"))
{
  // it is checked
}
Posted by: Guest on March-09-2020
4

jquery check if checkbox is not checked

if (!$("#checkboxID").is(":checked")) {
    // do something if the checkbox is NOT checked
}
Posted by: Guest on May-07-2020
3

check whether a checkbox is checked in jQuery

if ($('#grepperRocks').is(':checked')) {
	// this checkbox is checked
}
Posted by: Guest on March-17-2020
0

jquery see if checkbox is checked

$('input.checkbox').is(':checked')
Posted by: Guest on October-01-2020
0

jquery check if all checkbox is not checked

$('#checkAll').click(function () {    
     $('input:checkbox').prop('checked', this.checked);    
 });
Posted by: Guest on August-12-2020

Code answers related to "get checkbox checked or not in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language