方法一
代码如下:
document.getElementById("selectid").options.length = 0;
方法二
代码如下:
document.formName.selectName.options.length = 0;
方法三
代码如下:
document.getElementById("selectid").innerHTML = "";查看更多关于清空select标签中option选项的3种不同方式_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did106351