Remove attribute “checked” of checkbox

后端 未结 9 1237
野的像风
野的像风 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:41

    try something like this FIDDLE

        try
          {
            navigator.device.capture.captureImage(function(mediaFiles) {
            console.log("works");
             });
          }
    
        catch(err)
          {
            alert('hi');
            $("#captureImage").prop('checked', false);
    
          }
    

提交回复
热议问题