<td><input id="chkall" type="checkbox" onclick="chkall();" />全选/取消</td>
1 <script type="text/javascript">
2 function chkall()
3 {
4 //debugger;
5 var chkall= document.all["chkall"];
6 var chkother= document.getelementsbytagname("input");
7 for (var i=0;i<chkother.length;i++)
8 {
9 if( chkother[i].type==checkbox)
10 {
11 if(chkother[i].id.indexof(treeview1)>-1)
12 {
13 if(chkall.checked==true)
14 {
15 chkother[i].checked=true;
16 }
17 else
18 {
19 chkother[i].checked=false;
20 }
21 }
22 }
23 }
24 }
25 </script>
文章整理:站长天空 网址:http://www.z6688.com/
以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!




