how to check if checkbox has been checked in 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
}