checkbox is checked or not code example
Example 1: check whether a checkbox is checked in jQuery
if ($('#grepperRocks').is(':checked')) {
// this checkbox is checked
}
Example 2: how to check input is selected or not
var $boxes = $('input[name=thename]:checked');