Hi All,
I've got a form that users can fill out which when submitted will render N number of dropdown fields (via ASP).
For my own reasons, I don't want to store these objects into an array when validating, so the name of each dropdown menu is going to be "#Month" where # will be the number of the dropdown.
So, when submitting the form, I'd like the page to check if everything is filled out, on all forms.
I was thinking something around the lines of this:
Can someone point me in the right direction, as this isn't working?

I've got a form that users can fill out which when submitted will render N number of dropdown fields (via ASP).
For my own reasons, I don't want to store these objects into an array when validating, so the name of each dropdown menu is going to be "#Month" where # will be the number of the dropdown.
So, when submitting the form, I'd like the page to check if everything is filled out, on all forms.
I was thinking something around the lines of this:
Code:
for (var n = 1; n <= <%=request.form("NumberOfEvents")%>; n++){
if (document.all.[n]Month.options[document.all.[n]Month.selectedIndex] == 0); {
alert("foo");
}
}
Can someone point me in the right direction, as this isn't working?
