CheckBox 批量选中, 批量选中
<! doctype html> <html lang = "en"> <head> <meta charset = "utf-8"> <title> 문서 </title> <script type = "text/javaScript"src = "jquery.js"> </script> </head> <bod> <div id = "table"> <테이블 id = "personlist"> <tr> <th> id </th> <th> <입력 유형 = "checkbox"name = "allCheck"onclick = "fun ()"> </input> </th> <th> name </th> <th> age </th> <th> country </th> </tr> <td> 1 </td> <input type = "input type". id = "a"> </input> </th> <td> asan </td> <td> 32 </td> <td> 중국 </td> </tr> <td> <td> 2 </td> <th> <입력 유형 = "Checkbox"name = "CheckMe" id = "b3e"> </input> </th> <td> Hon </td> <td> 30 </td> <td> jp </td> </tr> <td> <td> 3 </td> <th> <입력 유형 = "Checkbox"name = "CheckMe" id = "cdd"> </input> </th> <td> jhone </td> <td> 27 </td> <td> USA </td> </tr> </table> </div> < "input type ="value "value ="onclick = "s ()"id = "qw"name = "aaa" document.getElementsByName ( "CheckMe"); var arr = new array (); for (var i = 0; i <obj.length; i ++) {obj [i] .click (); arr [i] = $ (obj [i]) document.getElementsByName ( "checkme"); var arr = []; for (var i = 0; i <obj.length; i ++) {if ($ (obj [i]). is ( ': checked')) {var id = $ (obj [i]). 부모 (). siblings (). text =. $ (obj [i]). parent (). siblings (). , Age : "+age+", Country : "+Country); // alert ("$ (obj [i]) : "+$ (obj [i])+", id : "+$ (obj [i]). id+", name : "+$ (obj [i]). name)}}} </script> </html>以上就是小编为大家带来的 checkbox 批量选中, 获取选中项的值的简单实例全部内容了, 希望大家多多支持武林网 ~