Check and Uncheck Checkbox Dynamically with jQuery : bug?

前端 未结 5 2248
我在风中等你
我在风中等你 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:33

    Use prop method for new versions of jQuery:

    $('#myCheck').prop('checked', true);
    $('#myCheck').prop('checked', false);
    

    http://jsfiddle.net/uQfMs/37/

提交回复
热议问题