jquery get if input 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
}