表单中appendChild的问题... document.getElementById("aa").appendChild(xx) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 //试一下这个<script> function f1() { var xx=document.createElement("option"); xx.innerHTML="<option value='xx1'>xx1<option>"; aa.appendChild(xx) }</script><from><select id="aa"><option id="aaa">aaaa</option><option id="cccc">ccc</option></select><button type="input" id="input" value="input1" onclick="f1()">aaa</button></from> 哦,楼上的,innerHTML在非IE浏览器上是不支持的吧... ps:谢谢二楼...明天回公司试试...OK就揭帖... 循环滚动条javascript脚本,遇到多表嵌套时候的问题 谁知道如何给你jsp或者html文件加一个二级菜单 (让插入到 innerHTML 中的 script 跑起来)问题 javascript 跳转代码 js中如何获取收藏夹的所有收藏 闭包的例子,不理解! 动态显示一个js文件到页面上 js中读取数据流 找东西,RichTextBox和DOTNET中华网的DotNetTextBox,:(~ 关于404错误的问题,搜了好多方法一直解决不了,求大神来看看 如何给链接文字改颜色 JS取值问题,在线等待高手解答
<script>
function f1()
{
var xx=document.createElement("option");
xx.innerHTML="<option value='xx1'>xx1<option>";
aa.appendChild(xx)
}
</script>
<from>
<select id="aa">
<option id="aaa">aaaa</option>
<option id="cccc">ccc</option>
</select>
<button type="input" id="input" value="input1" onclick="f1()">aaa</button>
</from>