标题:js问题请教,下拉菜单报错
取消只看楼主
gesongs
Rank: 3Rank: 3
等 级:论坛游侠
威 望:3
帖 子:129
专家分:100
注 册:2011-7-7
结帖率:52.78%
已结贴  问题点数:18 回复次数:0 
js问题请教,下拉菜单报错
下述是一个下拉菜单 但是有问题请懂行的人指点
<script>
 i = 1;
function dian_add(){
  document.getElementById("d").innerHTML+='<div id="div_'+i+'">
                                                                单位:<select name="bu_men" id="bu_men">
                                                                      <option value="" selected="selected">
                                                                      </option><%do while not rs100.eof%>
                                                                      <option value="<%=rs100("bu_men")%>"><%=rs100("bu_men")%></option>
                                                                      <%rs100.movenext %>
                                                                      <%loop%>
                                                                      <input type="button" value="删除"  onclick="del('+i+')"/>
                                              </div>';
  i = i + 1;
}
function del(o){ document.getElementById("d").removeChild(document.getElementById("div_"+o));}
</script>
搜索更多相关主题的帖子: 菜单 function selected option 
2011-11-25 20:42



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-356235-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.452768 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved