Apologies in advance my javascript is not great.
I want to create a script to cycle through a number of checkboxes to disable them. The best I can do is:
for(i=0;i<20;i++) {
vax x = document.forms.myForm.box_;
x.disabled=true;
}
Where the checkboxes are named "box_0, box_1, box_2..." etc.
I want to create a script to cycle through a number of checkboxes to disable them. The best I can do is:
for(i=0;i<20;i++) {
vax x = document.forms.myForm.box_;
x.disabled=true;
}
Where the checkboxes are named "box_0, box_1, box_2..." etc.