How to uncheck checkbox using jQuery Uniform library

后端 未结 12 2198
再見小時候
再見小時候 2021-01-29 22:04

I have a problem with unchecking a checkbox. Have a look at my jsFiddle, where I am attempting:

   $(\"#check2\").attr(\"checked\", true);
<         


        
12条回答
  •  故里飘歌
    2021-01-29 23:00

    Looking at their docs, they have a $.uniform.update feature to refresh a "uniformed" element.

    Example: http://jsfiddle.net/r87NH/4/

    $("input:checkbox").uniform();
    
    $("body").on("click", "#check1", function () {
        var two = $("#check2").attr("checked", this.checked);
        $.uniform.update(two);
    });
    

提交回复
热议问题