jquery check if element checked or not 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: how to check input is selected or not
$('#' + id).is(":checked")