Let the storm money come!

gridview 列表时常用的 js

代码
        //选择当前列表中的所有行
        function selectAllRow(oChk) {
            $(
"input[name='chkRow']").attr("checked", oChk.checked);
        }
        
        
//批量删除前检查是否有选中的行
        function checkSelected() {
            
if ($("input[name='chkRow']:checked").length == 0){
                alert(
"请选择要删除的行!"); 
                
return false
            }
            
else {
                confirm(
"是否删除?");
            }
        }

 

posted @ 2010-04-02 10:37  精密~顽石  阅读(146)  评论(0编辑  收藏  举报
在通往地狱的路上,加班能使你更快到达。