while check checkbox is checked 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
}