jQuery, Chrome, and Checkboxes. Strange Behavior

后端 未结 4 556
日久生厌
日久生厌 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:43

    Instead of this:

    $(':checkbox').removeAttr('checked');
    

    You should do this:

    $(':checkbox').attr('checked', false);
    

    Cheers

提交回复
热议问题