Is ‘disabled’ a valid attribute for an anchor tag

Read w3c Link and the-a-element

disable is not valid with anchor tags

instead you can do it by event.preventDefault()

$('a').click(function(event){
   event.preventDefault();
});

Leave a Comment