jquery how to check if a checkbox is checked 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');