how to uncheck a checkbox in jquery
snippet in javascript

how to uncheck a checkbox in jquery

user1347

$("#myCheckBox").prop("checked", false);

jquery check checkbox

user3868

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

jquery set checkbox checked unchecked

user6090

//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