惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
D
DataBreaches.Net
C
Check Point Blog
I
InfoQ
A
About on SuperTechFans
Engineering at Meta
Engineering at Meta
月光博客
月光博客
Recent Announcements
Recent Announcements
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Tailwind CSS Blog
Y
Y Combinator Blog
博客园 - Franky
博客园_首页
罗磊的独立博客
量子位
美团技术团队
T
The Blog of Author Tim Ferriss
Last Week in AI
Last Week in AI
大猫的无限游戏
大猫的无限游戏
爱范儿
爱范儿
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Martin Fowler
Martin Fowler
博客园 - 叶小钗
aimingoo的专栏
aimingoo的专栏

博客园 - Kangaroo

IList<T>与Xml互相转换 jQTreeTable在Asp.net中的应用 通用附件上传方法 window.createPopup()创建菜单 - Kangaroo - 博客园 事务的回滚设置(SET XACT_ABORT) 获取所有命名的服务器变量的名称和值 服务端返回操作结果消息的方法 - Kangaroo - 博客园 Treeview的文件目录配置 - Kangaroo - 博客园 用层(DIV)来实现弹出窗口 一个实用的表格(锁定表头,可调整单元格大小,可排序) showModalDialog()、showModelessDialog()方法使用详解 SQL Server .NET Framework 数据提供程序连接池 iBATIS.NET 学习笔记(十一) iBATIS.NET 学习笔记(十) iBATIS.NET 学习笔记(九) iBATIS.NET 学习笔记(八) iBATIS.NET 学习笔记(七) iBATIS.NET 学习笔记(六) iBATIS.NET 学习笔记(五)
客户端全部选中或取消DataGrid中的CheckBox
Kangaroo · 2007-03-27 · via 博客园 - Kangaroo

<script>
        
// 全选 
        function allCheck() 
        

            
for (var i=0;i<Form1.elements.length;i++
            

                
var e=Form1.elements[i]; 
                
if (e.type=='checkbox') 
                e.checked
=true
            }
 

        }
 
        
//反选 
        function revCheck() 
        

            
for (var i=0;i<Form1.elements.length;i++
            

            
var e=Form1.elements[i]; 
            
if (e.type=='checkbox') 
            e.checked
= false;
            }
 
        }
 
        
        
function CheckBoxSelect()
        
{
           
var cb=document.getElementById("cbAll");
           
if(cb.checked)
           
{
              allCheck();
           }

           
else
           
{
             revCheck();
           }

        }

        
</script>

posted @ 2007-03-27 11:34  Kangaroo  阅读(365)  评论(0)    收藏  举报

刷新页面返回顶部