how to find if checkbox is checked in 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")