Html- how to disable ? [duplicate]

You can use CSS to accomplish this:

.disabled {
  pointer-events: none;
  cursor: default;
}
<a href="https://stackoverflow.com/questions/28318057/somelink.html" class="disabled">Some link</a>

Or you can use JavaScript to prevent the default action like this:

$('.disabled').click(function(e){
    e.preventDefault();
})

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)