チェックボックス批量选中、获取选中项的值的简单实例
<!doctype html> <html lang = "en"> <head> <meta charset = "utf-8"> <title> document> document> <スクリプト> <スクリプトタイプ= "text/javascript" src = "jquery.js"> </script> </head> <body> <div> "the inputid = </th </<> </<> </th> < type = "Checkbox" name = "Allcheck" onclick = "fun()"> </input> </th> <th> name </th> <th> country </th> </tr> <tr> <td> 1 </td> <th> <thth> <input Type = "チェックボックス" name = ""チェックメー "" id = "> </input> </th> <td> asan </td> <td> 32 </td> <td>中国</td> </tr> <tr <td> 2 </td> <th> <入力="チェックボックス "name =" checkme " id = "b3e"> </input> </th> <td> hon </td> <td> 30 </td> <td> jp </td> </tr> <tr> <td> 3 </td> <th> <入力タイプ= "チェックボックス" name = "checkme" id = "cdd"> </input> </th> <td> jhone </td> <td> 27 </td> <td> usa </td> </tr> </table> </div> <inputタイプ= "button" vulte "value" value = "" onclick = "s()" id = "qw" "aaa" aaa "/> <> <> <> <> <> <> <> <> <crupt> document.getElementsByname( "CheckMe"); var arr = new array(); for(var i = 0; i <obj.length; i ++){obj [i] .click(); arr [i] = $(obj [i])。parent() document.getElementsByname( "checkme"); var arr = []; for(var i = 0; i <obj.length; i ++){if($(obj [i])。is( ':checked')){var id = $(obj [i])。 $(obj [i])。parent()。 、年齢: "+age+"、country: "+country); // alert(" $(obj [i]): "+$(obj [i])+"、id: "+$(obj [i])。id+"、name: "+$(obj [i])。name)}}}}}} </html>以上就是小编为大家带来的チェックボックス批量选中、获取选中项的值的简单实例全部内容了、希望大家多多支持武林网〜