How to uncheck checkbox using jQuery Uniform library

后端 未结 12 2170
再見小時候
再見小時候 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 22:39

    $("#chkBox").attr('checked', false); 
    

    This worked for me, this will uncheck the check box. In the same way we can use

    $("#chkBox").attr('checked', true); 
    

    to check the checkbox.

提交回复
热议问题