javascript to select all checkbox
-
Hi all i have many categories and each Category have set of Checkboxes the business rule is that whenever i click the Category then all its members(Checkboxes) should get selected . Please tell me how to do that ?
-
Hi all i have many categories and each Category have set of Checkboxes the business rule is that whenever i click the Category then all its members(Checkboxes) should get selected . Please tell me how to do that ?
Hi! One way is to call a function when the categorycheckbox is changed that does something like this. This assumes that all the checkboxes for one category is in the same container (ex. div) function CheckAllBoxes(){ var mycheckboxes = document.getElementById("mycheckboxcontainer").getElementsByTagName('input'); for(var i=0; i