![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jsp
yuliya1027
dfdf
展开
-
JS listBox
<!-- function addIt(){ var input = document.getElementById("input"); var output = document.getElementById("output"); for(i = 0; i < input.length; i ++ ) { if(input[i].selected == true) { if( out转载 2011-11-15 16:26:55 · 376 阅读 · 0 评论 -
关于select option很好的总结
一基础理解:var e = document.getElementById("selectId");e. options= new Option("文本","值") ;//创建一个option对象,即在标签中创建一个或多个文本//options是个数组,里面可以存放多个文本这样的标签1:options[ ]数组的属性:length属性--------转载 2011-11-15 17:12:37 · 415 阅读 · 0 评论