Anyone know how to disable a link in jquery WITHOUT using return false;?
return false;
Specifically, what I\'m trying to do is disable the link of an item, performing
Here is an alternate css/jQuery solution that I prefer for its terseness and minimized scripting:
css:
a.disabled { opacity: 0.5; pointer-events: none; cursor: default; }
jQuery:
$('.disableAfterClick').click(function (e) { $(this).addClass('disabled'); });