verify checkbox checked with id jquery 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")