how to write method for input checked and not checked. code example
Example 1: jquery checkbox checked
$("checkbox").is(":checked")
Example 2: check checkbox by jquery
$('.myCheckbox').prop('checked', true);
$('.myCheckbox').prop('checked', false);