日期:2014-05-17  浏览次数:20800 次

一个简单的下拉列表的问题
怎么让下拉列表显示需要的值比如显示 2  select里面要怎么写      
<select   name= "lx "   id= "lx "   >
  <option   value= "0 "> 0 </option>
    <option   value= "1 "> 1 </option>
<option   value= "2 "> 2 </option>
  </select>

------解决方案--------------------
<select name= "lx " id= "lx " >
<option value= "0 "> 0 </option>
<option value= "1 "> 1 </option>
<option value= "2 " selected> 2 </option>
</select>
------解决方案--------------------
<select name= "lx " id= "lx " >
<option value= "0 " <%if CInt(aa)=0 then Response.Write( "Selected ")%> > 0 </option>
<option value= "1 " <%if CInt(aa)=1 then Response.Write( "Selected ")%> > 1 </option>
<option value= "2 " <%if CInt(aa)=2 then Response.Write( "Selected ")%> > 2 </option>
</select>
------解决方案--------------------
这个可以使用javascript进行控制的……反正每次都要刷新页面的说