I want to disable this link for a few seconds.
<a href="#" data-role="button" data-theme="f" data-rel="popup" id="deshabilitar" type="button" data-icon="cloud-upload" data-iconshadow="true" onclick="deshabilitar()"></a>
so that it only allows to click once. In the function I have this code but it does not do it to me and I do not see why. Thanks.
var button = $('#deshabilitar');
button.attr('disabled', 'disabled');
setTimeout(function() {
button.removeAttr('disabled');
},3000);