On my form I have an array of checkboxes
I don't seem to be getting anywhere with my code.
var chk_arr = document.getElementsByName("Selected1");
for (iCount=0; iCount < 3; iCount++)
if (chk_arr[iCheckboxNum].checked == 1)
alert ("do something here");
Are you wanting only one checkbox to be active at a time? Because if so - radio buttons are the best interface for that type of situation.
If your situation is different though, can we get some details about what you are wanting to achieve with the checkboxes?
This topic is now closed. New replies are no longer allowed.