jquery to detect if input is checked or not code example
Example 1: checkbox is checked jquery
$(your_checkbox).is(':checked');
Example 2: How do I check whether a checkbox is checked in jQuery?
$('#' + id).is(":checked")
$(your_checkbox).is(':checked');
$('#' + id).is(":checked")