jquery set checkbox checked unchecked
snippet in javascript

Setting “checked” for a checkbox with jQuery

user5792

$('.myCheckbox').prop('checked', true);
$('.myCheckbox').prop('checked', false);

jquery set checkbox checked unchecked

user9855

//jQuery 1.6+ use
$('.checkbox').prop('checked', true);  //false for uncheck
//jQuery 1.5.x and below use
$('.checkbox').attr('checked', true);  //false for uncheck

check a checkbox jquery

user5636

$('#grepperRocks').prop('checked', true);