zoukankan      html  css  js  c++  java
  • Juqery的一些应用1

     function CheckAll(groupID, evt) {            

    if (window.event)     //屏蔽父事件响应(例如:点击某一个复选框时,其行事件不响应)

    {                

        event.cancelBubble = true;     

    } else if (evt) {          

           evt.stopPropagation();       

    }

    if ($("#" + groupID).attr('checked')) {

           $("#blueprint" + groupID.substring(6)).find(':checkbox').each(             

                    function () {                      

                          $(this).attr('checked', 'checked');  

                    }                

           );            

    } else {                

          $("#blueprint" + groupID.substring(6)).find(':checkbox').each(                    

                function () {                        

                   $(this).attr('checked', '');                    

                }                 

          );            

    }        

    }

  • 相关阅读:
    A1047 Student List for Course [unordered_map]
    .net 事务处理的三种方法
    SQline安装
    LeetCode 21 _ 合并两个有序链表
    LeetCode 191 _ 位1的个数
    LeetCode 268 _ 缺失数字
    LeetCode 190 _ 位运算
    LeetCode 136 _ 位运算
    LeetCode 461 _ 位运算
    LeetCode 125 _ 字符串
  • 原文地址:https://www.cnblogs.com/fqs123456/p/3247663.html
Copyright © 2011-2022 走看看