獲取頁面中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
相關文章
相關標籤/搜索