1//jQuery 1.6+ use
2$('.checkbox').prop('checked', true);
3//jQuery 1.5.x and below use
4$('.checkbox').attr('checked', true);1$('.myCheckbox').prop('checked', true);
2$('.myCheckbox').prop('checked', false);1//jQuery 1.6+ use
2$('.checkbox').prop('checked', true); //false for uncheck
3//jQuery 1.5.x and below use
4$('.checkbox').attr('checked', true); //false for uncheck1//jQuery 1.6+ use:
2$('.checkboxClass').prop('checked', true);
3//jQuery 1.5.x and below use:
4$('.checkboxClass').attr('checked', true);1$("#checkboxid").prop('checked', true); // Checks the box
2$("#checkboxid").prop('checked', false); // Unchecks the box
3