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();
})