hello all,
I'm having this problem trying to get a value from a select drop down options using js.
and here is the drop down
I keep getting a result = undefine, why?
thanks!
I'm having this problem trying to get a value from a select drop down options using js.
Code:
function Do_PlayVideoNum(camNum) {
document.write(iCam.value);
document.close();
}
Code:
<select name="iCam" onchange="Do_PlayVideoNum(1);">
<option value=""><- Select -></option>
<%
for cam=1 to 10
%>
<option value="<% =cam %>">Camera <% =cam %></option>
<%
next
%>
</select>
I keep getting a result = undefine, why?
thanks!