I have a dropdown box with two choices, and below the dropdown box are to textboxes. How can I display information above each box based on a selection from the dropdown box? -Thanks!
Code:
<% if showccform="YES" then %>
<tr>
<td width="10%"> </td>
<td width="80%"><select size="1" name="cctype">
<%
'Open database get credit card types!
set rs=openrs("SELECT * FROM creditcard ORDER BY name")
if not rs.eof then
rs.movefirst
while not rs.eof
ccname=rs("name")
%>
<option class="formfield" value="<%=ccname%>"><%=ccname%>
</option>
<%
rs.movenext
wend
end if
rs.close
set rs=nothing
%>
<option class="formfield" selected value="<%=cctype%>"><%=cctype%>
</option>
</select></td>
<td width="10%"> </td>
</tr>
<tr>
<td width="10%" height="21"> </td>
<td class="formheadings" width="80%" height="21"></td>
<td width="10%" height="21"> </td>
</tr>
<tr>
<td width="10%" height="25"> </td>
<td width="80%" height="25">
<input class="formfield" type="text" name="ccardno" size="20" value="<%=ccardno%>"></td>
<td width="10%" height="25"> </td>
</tr>
<tr>
<td width="10%" height="21"> </td>
<td class="formheadings" width="80%" height="21"></td>
<td width="10%" height="21"> </td>
</tr>
<tr>
<td width="10%" height="25"> </td>
<td width="80%" height="25">
<input class="formfield" type="text" name="ccnoc" size="20" value="<%=fixhtmlform(ccnoc)%>"></td>
<td width="10%" height="25"> </td>
</tr>
Comment