how to check if checkbox is checked javascript jquery 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
}