Check and Uncheck Checkbox Dynamically with jQuery : bug?

前端 未结 5 2257
我在风中等你
我在风中等你 2021-02-13 02:08

I made a script in order to control master & slave checkboxes (automatic checking and unchecking).

Here is my JS :

$(document).ready(function() {

           


        
5条回答
  •  被撕碎了的回忆
    2021-02-13 02:36

    i made some experiences , actually $(':checkbox').attr('checked',false); althought this could set the "checked" attribute , but it won't continuesly shows in the visual . and $(':checkbox').prop('checked', true); this one works perfectly! hope this could do some help .

提交回复
热议问题