jQuery, Chrome, and Checkboxes. Strange Behavior

后端 未结 4 557
日久生厌
日久生厌 2021-02-07 18:03

I\'ve looked around the site and can\'t seem to find an answer for this question. Feel free to direct me to said question, if it does indeed exist.

I\'m currently trying

4条回答
  •  不知归路
    2021-02-07 18:46

    I was facing the same problem and solved using the following code in chrome. Hope it will help.

    $("#allchkbox").click(function() {
        if(this.checked) {
            $(".ItemChkbox").each(function() {
                this.checked = true;
            });
        }
        else {
            $(".ItemChkbox").each(function() {
                this.checked = false;
            });
        }
    });
    

提交回复
热议问题