清空select标签中option选项的4种不同方式

方法一
document.getElementById("selectid").options.length = 0; 

方法二
document.formName.selectName.options.length = 0; 

方法三
document.getElementById("selectid").innerHTML = ""; 不知道为了什么,只有这个方法三灵
方法4:
document.getElementById("selectid").Empty()
posted @ 2016-12-08 17:27  彭涛  阅读(174)  评论(0)    收藏  举报