[thelist] Javascript for/in
Tab Alleman
talleman at autobex.com
Fri Oct 20 14:01:42 CDT 2000
Why won't this bit of JavaScript cause all the checkboxes in 'MainTableForm'
to be checked when run? I've tried every variation of the script below that
I can think of. I can do it with a regular for loop, but I want the for/in
loop to work like it's supposed to.
for (checkbox in document.forms['MainTableForm'])
{
document.forms['MainTableForm'].elements[checkbox].checked=true;
}
More information about the thelist
mailing list