jquery check if checkbox code example
Example 1: How do I check whether a checkbox is checked in jQuery?
$('#' + id).is(":checked")
Example 2: how to check input is selected or not
var $boxes = $('input[name=thename]:checked');
$('#' + id).is(":checked")
var $boxes = $('input[name=thename]:checked');