if checked is true jquery code example
Example 1: checkbox is checked jquery
$(your_checkbox).is(':checked');
Example 2: how to check input is selected or not
$('#' + id).is(":checked")
$(your_checkbox).is(':checked');
$('#' + id).is(":checked")