select元素的 .options.length = 0 会清空其下所有option
.options.add(new option(optiontext,optionvalue)) 增加一个option
.options[元素编号].selected == true 判断该option是否被选中
可以多选的select:
<select >...</option></select>
select元素的 .options.length = 0 会清空其下所有option
.options.add(new option(optiontext,optionvalue)) 增加一个option
.options[元素编号].selected == true 判断该option是否被选中
可以多选的select:
<select >...</option></select>
相关文章: