复选框批量选中,获取选中项的值的简单实例
<!doctype html> <html lang =“ en”> <head> <head> <meta charset =“ utf-8”> <title> </title> </title> <脚本> <脚本> <script text/javascript“ src =” src =“ jquery.js”> </script> </script> </script> </head> </head> type =“复选框” name =“ allCheck” onclick =“ fun()”> </input> </th> <th> name </th> </th> </th> </th> </th> <th> country </th> </th> </th> </tr> <tr> <tr> <tr> </td> 1 </td> </td> <th> <th> <th> id =“ a”> </input> </th> <td> asan </td> <td> 32 </td> <td>中国id =“ b3e”> </input> </th> <td> id =“ cdd”> </input> </th> <td> document.getElementsByname(“ checkme”); var arr = new array(); for(var i = 0; i <obj.length; i ++){obj [i] .click(); arr [i] = $(obj [i] = $(obj [i]) document.getElementsByname(“ checkme”); var arr = []; for(var i = 0; i <obj.length; i ++){if($(obj [i])。is(':':':':checked')){var id = $(obj [obj [i])。 $(obj [i])。parent()。siblings()。eq(1).text(); var age = $(obj [i])。parent()。erblings()。eq(2).text().text().var country = $(obj [obj [i])。 ,年龄:“+age+”,国家:“+country); // alert(“ $(obj [i]):“+$(obj [i])+“,id:”+$(obj [i])。以上就是小编为大家带来的复选框批量选中,获取选中项的值的简单实例全部内容了,希望大家多多支持武林网〜