<select name= "capital ">
<%
if session( "Company_capital ")=rs3( "r_id ") then
do while not rs3.eof
response.write " <option value= "&rs3( "r_id ")& "> "&rs3( "title ")& " </option> "
rsClass1.movenext
loop
else
response.write " <option> "& "==请选择注册资本== "& " </option> "
do while not rs3.eof
response.write " <option value= "&rs3( "r_id ")& "> "&rs3( "title ")& " </option> "
rs3.movenext
loop
end if
rs3.close
%>
</select>
为什么不可以像这样显示呢?
<select name=sel>
<option value= " "> 请选择
<option value= "珠海 "> 250 </option>
<option value= "长沙 " selected> 200 </option>
<option value= "广州 "> 300 </option>
</select>
前一个是取动态值,我在另外一个地方试用可以得出想要的状态,但在上面却不行!
------解决方案--------------------
<select name=sel>
<option value= " "> 请选择 </option> ----> 没闭合
<option value= "珠海 "> 250 </option>
<option value= "长沙 " selected> 200 </option>
<option value= "广州 "> 300 </option>
</select>