你这是ASP中的问题吧。如果是的话,就很好解决的
<select name="type">
<option <% if rsType("type")="type1" then %> selected <%end if%>>type1</option>
<option <% if rsType("type")="type2" then %> selected <%end if%>>type2</option>
<option <% if rsType("type")="type3" then %> selected <%end if%>>type3</option>
</select>
<select name="type">
<option <% if rsType("type")="type1" then %> selected <%end if%>>type1</option>
<option <% if rsType("type")="type2" then %> selected <%end if%>>type2</option>
<option <% if rsType("type")="type3" then %> selected <%end if%>>type3</option>
</select>
解决方案 »
- 想把Web程序做成类似星际争霸菜单弹出隐藏的效果,请问什么好JS框架能帮忙?
- ext4 如何让loadMask里的提示信息居中
- jquery对于同一事件能绑定多个响应函数?
- 脚本连续滚动字幕
- 关于Ext在IE7下button高度的问题!!急!!在线等
- <script language="JavaScript" src="http://www.google.cn"></script>-----语法错误
- 怎么给单选按钮的value做连接?
- 求助!! 如何在javascript 中使用trim函数 (在线等!!!)
- js 原型继承 以及 constructor 问题
- extjs4如何给grid添加空行
- 怎么让wscript运行(调用本地.exe文件)的时候不出警告(要在代码中实现)?
- 走出 Js 学习的误区之个人看法
<option <% if rsType("type").equals("type1") out.println("selected") %>>type1</option>
<option <% if rsType("type")equals("type2") out.println("selected")%>> type2</option>
<option <% if rsType("type")equals("type3") out.println("selected")%>> type3</option>
</select>