Apache click - Beginner.
I have a "Select All" check box and list of check boxes below. Clicking on
"Select All" should select all of them below and unchecking it should
uncheck all, basic scripting (like in gmail).
Here is how i am trying to achieve it.
selectAllCheckBox.setAttribute("onclick", "selectOne.checked = true;
selectTwo.checked = true; selectThree.checked = true");
checkBox1.setAttribute("onclick", "selectAll.checked = false;");
checkBox2.setAttribute("onclick", "selectAll.checked = false;");
checkBox3.setAttribute("onclick", "selectAll.checked = false;");
Is there a more proficient way to do this?