您的位置:首页 > 运维架构

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

2013-07-11 16:40 363 查看
方法一

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

方法二

document.formName.selectName.options.length = 0;

方法三

document.getElementById("selectid").innerHTML = "";
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: