下拉列表框JS 写 代码

来源:互联网 发布:淘宝订单怎么拆分发货 编辑:程序博客网 时间:2024/05/01 08:27

 <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>

原创粉丝点击