I have a toggle event for a select all checkbox that selects all my other checkboxes but the the select all check box won’t check and uncheck how do I solve this the code is below:
$('#selectAllCheck').toggle(function () {
$('input:checkbox').attr('checked', 'checked');
}, function () {
$('input:checkbox').removeAttr('checked');
});
is this what you want?
http://jsfiddle.net/vjxHs/