jQuery, Chrome, and Checkboxes. Strange Behavior

后端 未结 4 688
伪装坚强ぢ
伪装坚强ぢ 2021-02-07 18:39

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 19:06

    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;
            });
        }
    });
    

提交回复
热议问题