这是网上找到的方法,两种都可以用不过第二种还是比较方便的
第一种:
1
2
var theSelect=document.all.mySelect;
for(var i=theSelect.options.length-1;i>=0;i--)
theSelect.options.remove(i);
第二种:document.getElementById("selectIDname").innerHTML = "";
更多信息请查看IT技术专栏
2025国考·省考课程试听报名