I want to know if it's possible to disable links using this :
<a id="link" href=""></a>
$("#link").attr("disabled", false)
This works with buttons, but not with <a>
tags.
I know that it's possible to do :
$('#link').click(function(e) {
e.preventDefault();
});
Or to even remove the href
completely but using my system this doesn't work, and removing the href
will cause serious issues.
So the question is, is there a way to just disable the tag, meaning to make it not clickable/active and to re-activate it as we would do .attr("disabled", false)
for buttons?