I have three dynamic select boxes on my asp page. The Onchange event does not fire off on the first options when selected. I had to go to a different option first and then go to the first option to get around it.
Below is my sample code. Any help will be greatly appreciated.
<SELECT NAME="version" ONCHANGE="document.frmUploadStatus.submit();">
<%
'loop through the recordset...
rs.movefirst
Do Until rs.EOF
'is this a new version?
If rs("version") <> version Then
%>
<OPTION VALUE ="<%=rs("version")%>"><%=rs("version")%></OPTION>
<%
else
%>
<OPTION VALUE = "<%=rs("version")%>" selected><%=rs("version")%></OPTION>
<%
end if
rs.MoveNext
Loop
' finish the version listbox...
rs.close
Set rs = Nothing
%>
Below is my sample code. Any help will be greatly appreciated.
<SELECT NAME="version" ONCHANGE="document.frmUploadStatus.submit();">
<%
'loop through the recordset...
rs.movefirst
Do Until rs.EOF
'is this a new version?
If rs("version") <> version Then
%>
<OPTION VALUE ="<%=rs("version")%>"><%=rs("version")%></OPTION>
<%
else
%>
<OPTION VALUE = "<%=rs("version")%>" selected><%=rs("version")%></OPTION>
<%
end if
rs.MoveNext
Loop
' finish the version listbox...
rs.close
Set rs = Nothing
%>