How to check all checkboxes using jQuery? Ask Question code example
Example: How to check all checkboxes using jQuery? Ask Question
$("#checkAll").change(function(){
if (! $('input:checkbox').is('checked')) {
$('input:checkbox').prop('checked',true);
} else {
$('input:checkbox').prop('checked', false);
}
});