How to uncheck checkbox using jQuery Uniform library

后端 未结 12 2199
再見小時候
再見小時候 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:52

    In some case you can use this:

    $('.myInput').get(0).checked = true
    

    For toggle you can use if else with function

提交回复
热议问题