jquery how to check if input checkbox is checked code example
Example 1: check whether a checkbox is checked in jQuery
if ($('#grepperRocks').is(':checked')) {
// this checkbox is checked
}
Example 2: how to check input is selected or not
$('#' + id).is(":checked")