<SCRIPT>
function testGG()
{
var xx = document.getElementById("xxx");
var oOption = document.createElement("OPTION");
xx.options.add(oOption);
oOption.innerText = "Two";
oOption.value = "2";
oOption.style.background = "blue"
}</SCRIPT>
<BODY>
<select id = "xxx">
</select>
<input type="button" value="add" onClick="testGG()">
</BODY>
function testGG()
{
var xx = document.getElementById("xxx");
var oOption = document.createElement("OPTION");
xx.options.add(oOption);
oOption.innerText = "Two";
oOption.value = "2";
oOption.style.background = "blue"
}</SCRIPT>
<BODY>
<select id = "xxx">
</select>
<input type="button" value="add" onClick="testGG()">
</BODY>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货