input checked or not jquery code example
Example 1: check checkbox by jquery
$('.myCheckbox').prop('checked', true);
$('.myCheckbox').prop('checked', false);
Example 2: how to check input is selected or not
var $boxes = $('input[name=thename]:checked');