prosit
asked on
Selecting a value for a combobox
Hi,
I am trying to select the vaue of a combobox based on what's in the database, but it does not select it:
<select name="MemberType" id="MemberType" value = "
<%
if ElAp = "AP" then response.write("Appointed" )
if ElAp = "EL" then response.write("Elected")
%>">
<option>Appointed</option>
<option>Elected</option>
<option>Coach</option>
</select>
Any ideas?
I am trying to select the vaue of a combobox based on what's in the database, but it does not select it:
<select name="MemberType" id="MemberType" value = "
<%
if ElAp = "AP" then response.write("Appointed"
if ElAp = "EL" then response.write("Elected")
%>">
<option>Appointed</option>
<option>Elected</option>
<option>Coach</option>
</select>
Any ideas?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
<select name="MemberType" id="MemberType">
<option <%if ElAp="AP" then response.write("selected")
<option <%if ElAp="EL" then response.write("selected")
<option <%if ElAp="CO" then response.write("selected")
</select>