全選/取消 | 1 <腳本類型=“text/javascript”>
2 函數chkAll()
3 {
4 //調試器;
5 var chkall= document.all["chkall"];
6 var chkother= document.getElementsByTagName("輸入");
7 為 (var i=0;i
8 {
9 if( chkother[i].type=='複選框')
10 {
11 if(chkother[i].id.indexOf('TreeView1')>-1)
12{
13 if(chkall.checked==true)
14{
15 chkother[i].checked=true;
16}
17 其他
18{
19 chkother[i].checked=false;
20}
21}
22}
23}
24}
25 腳本> http://xh3.cnblogs.com/archive/2006/07/20/456077.html