Hi all,
I'm trying to validate an array checkboxes utilizing this For loop,
from this array checkbox...
I just cannot understand what happen to the js code that I can't seem to concatenate the x value correctly for the checkbox values to be validated.
Please help!
I'm trying to validate an array checkboxes utilizing this For loop,
Code:
for (x=0;x<=document.edit.lCount.value;x++)
{
if ((document.edit.idLoc_(x).value != "") || (document.edit.channelNo_(x).value == ""))
{
alert("Invalid Location or Channel has been selected!")
document.edit.idLoc_(x).focus();
return false;
}
}
Code:
<input type="checkbox" name="idLoc_<%=x%>" value="<%=arrLoc(0,x)%>" <%if instr(vLoc,arrLoc(0,x)) then response.write "checked"%>> <b><%=arrLoc(1,x)%>
Please help!