手机
当前位置:查字典教程网 >网页设计 >XHTML >清空select标签中option选项的3种不同方式
清空select标签中option选项的3种不同方式
摘要:方法一document.getElementById("selectid").options.length=0;方法二document.fo...

方法一

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

方法二

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

方法三

document.getElementById("selectid").innerHTML = "";

【清空select标签中option选项的3种不同方式】相关文章:

html select标签加链接3种方法

HTML中iFrame标签的两个用法介绍

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

html表单的几种提交方式总结

深入解析HTML的table表格标签与相关的换行问题

html标签默认样式整理

改变HTML下拉框SELECT选项的多种方法

html 块级标签与内联标签的区别

超级链接a的表现形式和打开方式

HTML中frameset标签的使用教程

精品推荐
分类导航