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
Just set preventDefault and return false
$('#your-identifier').click(function(e) { e.preventDefault(); return false; });
This will be disabled link but still, you will see a clickable icon(hand) icon. You can remove that too with below
$('#your-identifier').css('cursor', 'auto');