jquery if checkbox is unchecked 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: get unchecked checkbox jquery
if ($("#check_box_id").is(':checked')) {
alert("checked");
}else{
alert("unchecked");
}
Example 3: jquery checkbox unchecked
$("input:radio[name='NAME']:radio[value='VALUE']").attr("checked",true);
$("input:radio[name='NAME']").removeAttr("checked");