I have two dropdown lists on a classic asp page:
<select id="ddlState" name="ddlState" runat="server">
<option value="KY">Kentucky</option>
<option value="IN">Indiana</option>
<option value="OH">Ohio</option>
<option value="TN">Tennessee</option>
</select>
<select name="ddlCounty">
<% if ddlState = "KY" then %>
<option>Adair</option>
<option>Allen</option>
<option>Anderson</option>
<% end if %>
<option>IN County</option>
<option>OH County</option>
<option>TN County</option>
</select>
I am attempting to figure out what is wrong with the following:
<%
response.write "Test"
response.write "<br />"
response.write ddlState
response.write "<br />"
response.write "Test2"
%>
I've tried these variations, as well:
response.write StateDropdown.value
and
Dim ddlState
set ddlState = document.getElementById("ddlState")
response.write ddlState.value
Anyone know what I am doing wrong, here? I wish I didn't have to use classic asp, but it is what it is and I am not super familiar with it.