Caixa de seleção 批量选中, 获取选中项的值的简单实例
<! doctype html> <html lang = "en"> <head> <meta charset = "utf-8"> <title> document </title> <script type = "text/javascript" src = "jQuery.js"> </script> </head> <body> <dd id = ""> id = "PersonList"> <tr> <th> id </th> <th> <input type = "caixa de seleção" name = "allcheck" onclick = "fun ()"> </input> </th> <th> nome </th> <th> idade </th> <th> </s> </t> </th "the> check" the> check "</th> check </th> check </th> check" id = "a"> </sput> </th> <td> asan </td> <td> 32 </td> <td> China </td> </tr> <tr> <td> 2 </td> <th> <input type = "caixa de seleção" name = "checkMe" id = "b3e"> </input> </th> <td> hon </td> <td> 30 </td> <td> jp </td> </tr> <tr> <td> 3 </td> <th> <input type = "caixa de seleção" name = "checkme" id = "cdd"> </sput> </th> <td> jhone </td> <td> 27 </td> <td> EUA </td> </tr> </tabela> </div> <input type = "button" value = "" onclick = "s ()" id = "qw" name = "aa" aa "" document.getElementsByName ("checkMe"); var arr = new Array (); para (var i = 0; i <obj.length; i ++) {obj [i] .Click (); arr [i] = $ (obj [i]). Parent (). document.getElementsByName ("checkMe"); var arr = []; para (var i = 0; i <obj.length; i ++) {if ($ (obj [i]). is (': checked')) {var id = $ (obj [i]). Parent (). $ (obj [i]). Parent (). SiBlings (). Eq (1) .Text (); var Age = $ (obj [i]). Parent (). Siblings (). Eq (2) .Text (); var country = $ (obj [i]). Parent (). , idade: "+idade+", país: "+país); // alert (" $ (obj [i]): "+$ (obj [i])+", id: "+$ (obj [i]). id+", nome: "+$ (obj [i]). nome)}}}} </script> </body> </ht [i]). name)}}}}} </script> </body> </ht [i]). name)}}}}} </script> </body> </ht)以上就是小编为大家带来的 Caixa de seleção 批量选中, 获取选中项的值的简单实例全部内容了 , 希望大家多多支持武林网 ~