zoukankan      html  css  js  c++  java
  • checkbox全选取消

    function CheckAll(chkAllBox)
        {
            if(chkAllBox.checked==true)
                chkAllBox.title="取消"
            else
                chkAllBox.title="全选"
            for(var i=2;i<100;i++)
           {
                var chkID = "";
                if(i<10)
                {
                    chkID = "0" + i;
                }
                else
                    chkID = i;
                chkID = "GridView1_ctl" + chkID + "_chk";
                if(document.getElementById(chkID) != null)
                    document.getElementById(chkID).checked = chkAllBox.checked;
            }
         }
  • 相关阅读:
    线程同步-使用CountDownEvent类
    WPF 依赖属性和附加属性
    ef core
    Razor语法
    python-爬虫
    ftp
    泛型
    结对编程作业
    第三次作业
    第二次作业
  • 原文地址:https://www.cnblogs.com/VirtualMJ/p/591804.html
Copyright © 2011-2022 走看看