日期:2014-05-17  浏览次数:21162 次

如何动态改变列表框的值(增加或删除)
如题

------解决方案--------------------
<SELECT ID= "oSelect ">
<OPTION VALUE= "1 "> One </OPTION>
</SELECT>

<SCRIPT>
var oOption = document.createElement( "OPTION ");
oSelect.options.add(oOption);
oOption.innerText = "Two ";
oOption.value = "2 ";
</SCRIPT>