test checked in jqury 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")