现在的位置: 首页 > 综合 > 正文

下拉列表框JS 写 代码

2014年01月03日 ⁄ 综合 ⁄ 共 343字 ⁄ 字号 评论关闭

 <script language="JavaScript" type="text/JavaScript">
    var obj
=document.getElementById('testCaseName');
    obj.options.add(
new Option("",""));
   
<%
   
if (testCaseLst!=null){
       
for (int i = 0; i < testCaseLst.length; i++) {
           
           
%>  
    obj.options.add(
new Option("<%=existName%>","<%=existName%>"));
           
<%

        }
    }
    %>
</script>

抱歉!评论已关闭.