Return to Snippet

Revision: 21376
at December 11, 2009 11:45 by derekholmes


Initial Code
$(document).ready(function(){
    
    $("#chk_All").click(function()
    {
       var checked_status = this.checked;
       $("input[type='checkbox']").each(function()
           {
                this.checked = checked_status;
           });
    });

});

Initial URL


Initial Description
Selects all checkboxes and checks or unchecks them.
#chk_All = id(s) of the check box to add an onclick event for

Initial Title
Select all Checkboxes

Initial Tags


Initial Language
jQuery