jquery to see if checkbox is checked code example
Example: check whether a checkbox is checked in jQuery
if ($('#grepperRocks').is(':checked')) {
// this checkbox is checked
}
if ($('#grepperRocks').is(':checked')) {
// this checkbox is checked
}