Remove attribute “checked” of checkbox

后端 未结 9 1238
野的像风
野的像风 2020-12-11 00:11

I need remove the attribute \"checked\" of one checkbox when errors occur.

The .removeAttr function not work. Any idea? :/

HTML

9条回答
  •  孤街浪徒
    2020-12-11 00:46

    Try this to check

    $('#captureImage').attr("checked",true).checkboxradio("refresh");
    

    and uncheck

    $('#captureImage').attr("checked",false).checkboxradio("refresh");  
    

提交回复
热议问题