Return to Snippet

Revision: 37055
at December 3, 2010 04:01 by delineo


Initial Code
// 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);

});

Initial URL

                                

Initial Description

                                

Initial Title
asp:checkbox check all checkboxes using jQuery

Initial Tags
jquery

Initial Language
VB.NET