I'm trying to put:
document.form1.proto0[0].checked=true;
document.form1.proto1[0].checked = true;
document.form1.proto2[0].checked = true;
..
..
document.form1.proton[0].checked =true;
into a loop. I've unsuccessfully tried:
for (var i=0;i<n+1;i++) {
document.form1.proto+i+[0].checked=true;
}
and I've been unsuccessful using:
for (var i=0;i<n+1;i++) {
document.forms["form1"].elements["proto"+i+"[0]"].checked=true;
}
Syntax-wise, where am I going astray?
--
Ed Jay (remove 'M' to reply by email)
Win the War Against Breast Cancer.
Knowing the facts could save your life.
http://www.breastthermography.info