手机
当前位置:查字典教程网 >网页设计 >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中的base标签使用详解

meta标签中的viewport控制设备屏幕css

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

html中select optgroup标签使用介绍

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

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

html H标题标签的用法

html body标签详解与html常用的控制标记

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

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

精品推荐
分类导航