手机
当前位置:查字典教程网 >网页设计 >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选项的多种方法

HTML标签语义化的介绍

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

html中设置锚点定位的几种常见方法

html meta标签的使用总结(推荐)

xHTML与HTML标签的写法有哪些不同

常用的XHTML标签的使用技巧介绍

html select标签加链接3种方法

HTML中frameset标签的使用教程

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

精品推荐
分类导航