/ Published in: VB.NET
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// Checks all individual checkboxes $(".checkAreaAll").children("input").click(function () { $(".checkArea").children("input").attr('checked', $(".checkAreaAll").children("input").is(':checked')); }); // unchecks the check all checkbox when one individual checkbox is unchecked $(".checkArea").children("input").click(function () { $(".checkAreaAll").children("input").attr('checked', false); });