Hi,
I have 10 checkboxes named chk1, chk2, chk3,.., chk10
I'd like to loop through them, so I wrote this code but it dosen't work:
Please help me! Thanks in advance.
I have 10 checkboxes named chk1, chk2, chk3,.., chk10
I'd like to loop through them, so I wrote this code but it dosen't work:
Code:
for (i = 1; i <= 10; i++) { if(document.Form1.chk+i.checked == true) { alert("check box number: "+ i + " is checked"); } }
Comment