Флажок 批量选中, 获取选中项的值的简单实例
<! Doctype html> <html lang = "en"> <head> <meta charset = "UTF-8"> <Title> Document </title> <script type = "text/javaScript src =" jquery.js "> </script> </head> <body> <div =" таблица "> <Таблица ID =" type = "fackbox" name = "allcheck" onclick = "fun ()"> </input> </th> <ht> name </th> <Th> Age </th> <Th> Country </th> </tr> <tr> <td> 1 </td> <th> <input type = "checkbox =" CheckMe " id = "a"> </input> </th> <td> asan </td> <td> 32 </td> <td> China </td> </tr> <tr> <td> 2 </td> <th> <input type = "fackbox" name = "checkme" id = "b3e"> </input> </th> <td> hon </td> <td> 30 </td> <td> jp </td> </tr> <tr> <td> 3 </td> <th> <input type = "fackbox" name = "checkme" id = "cdd"> </input> </th> <td> jhone </td> <td> 27 </td> <td> usa </td> </tr> </table> </div> <input type = "button" value = "" onclick = "s ()" id = "qw" name = "aaa"/> fund funt document.getelementsbyname ("checkme"); var arr = new array (); for (var i = 0; i <obj.length; i ++) {obj [i] .click (); arr [i] = $ (obj [i]). Parent (). Siblings (). Первый (). Document.GetElementsByName ("checkMe"); var arr = []; for (var i = 0; i <obj.length; i ++) {if ($ (obj [i]). IS (': werced')) {var id = $ (obj [i]). parent (). $ (obj [i]). parent ().. Бланки (). EQ (1) .Text (); var age = $ (obj [i]). parent (). , возраст: «+возраст+», страна: «+страна); // alert (" $ (obj [i]): "+$ (obj [i])+", id: "+$ (obj [i]). id+", имя: "+$ (obj [i]). name)}}} </script> </body> </html>以上就是小编为大家带来的 Флажок 批量选中, 获取选中项的值的简单实例全部内容了 , 希望大家多多支持武林网 ~