function checkAll (a, b){
alert("I am here");
for (i = 0; i < checked =" b.checked?">
And the following is the checkbox input that trigger the checkAll function:
<input id="selectAll" dojotype="dijit.form.CheckBox" name="selectAll" value="selectAll" onclick="checkAll(document.form1.checkbox,this)" type="checkbox">
However, by implementing the above scripts will not work if those checkboxes are place inside the dijit.layout.AccordionPane
After looking into the DOM from w3schools, the following scripts is the workable scripts where it will check all the checkboxes in the dijit.layout.AccordionPane. Instead of implementing the checked(), I have changed to the click()
function checkAll(a, b){
var x=document.getElementsByName("selectAll");
for (i = 0; i < a.length; i++) a[i].click()
}
There are more to come. Even though I am not a geek but I hope i can share more on my knowledge along this learning journey.
Adios ~ Kay Nny