获取页面中name相同的input或者select标签的option值

<html> <head> <script> function click_(){   var str = document.all.input1; for(var i = 0; i< str.length ;i++){ console.log(str[i].value); } } </script> </head> <body> <input type ="text" name ="input1
相关文章
相关标签/搜索