怎麼將這個變量內容追加到一個<select>標簽的後面 var sel = getElementById("bb")sel.options.add(new Option(1,2));就会生成:</select...> <option value="1">2</option> </select>这种形式 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <select name="bb" id="bb"> <option value="0" >0 </option> </select> <script>//参考insertBeforevar input=document.createElement("input");input.name="aa";input.id="aa";var nextSibling=document.getElementById("bb").nextSibling;if(nextSibling) document.body.insertBefore(input,nextSibling);else document.body.appendChild(input)</script> 我的Jsp数据库连接 二级选单选中某一项显示隐藏Input 帮改个JAVASCRIPT滚动! 高手进来看看:js链接2000的问题 只是一个远程外链JS文件就把浏览器搞死了 高分求助 showbo斑竹 请教个extjs combo小问题 急需一段js代码,是实现类似于fram功能的,快帮忙啊。 【求助】在showModalDialog完成验证后如何返回主页面? 就这个问题,大哥们帮我解决!我要投诉那个破坏网站! 正则表达式去掉空格 Form.element["..."]出错! 谁有windows右键菜单,要求多级,兼容firefox
<option value="0" >0 </option>
</select>
<script>
//参考insertBefore
var input=document.createElement("input");
input.name="aa";
input.id="aa";
var nextSibling=document.getElementById("bb").nextSibling;
if(nextSibling) document.body.insertBefore(input,nextSibling);
else document.body.appendChild(input)
</script>