手机
当前位置:查字典教程网 >网页设计 >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 元素隐藏的几种方式

HTML中frameset标签的使用教程

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

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

html中position的一个小用法使用介绍

Html Select option 如何进行默认选择

清除网页文字水印的两种简单方法

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

html select标签加链接3种方法

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

精品推荐
分类导航