手机
当前位置:查字典教程网 >网页设计 >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种不同方式】相关文章:

Button的四种Click响应方法汇总

meta标签在移动平台开发中的应用详解

Html Select option 如何进行默认选择

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

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

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

html中select optgroup标签使用介绍

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

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

将html标签在浏览器居中显示的css样式

精品推荐
分类导航