I need remove the attribute \"checked\" of one checkbox when errors occur.
The .removeAttr function not work. Any idea? :/
HTML
try something like this FIDDLE
try { navigator.device.capture.captureImage(function(mediaFiles) { console.log("works"); }); } catch(err) { alert('hi'); $("#captureImage").prop('checked', false); }