SyntaxFix
Write A Post
Hire A Developer
Questions
use checked : true, false property of the checkbox.
checked
jQuery:
if($('input[type=checkbox]').is(':checked')) { $(this).prop('checked',true); } else { $(this).prop('checked',false); }