Disable links Via jQuery

<script>

$(function(){

//grab all a tags

$('a').each(function(){

//click on a link....

$(this).click(function(){

alert($(this).attr('href')+' is not available');

//disable link

return false;

});

});

});

</script>

Comments

Popular posts from this blog

PHP: Date Difference for PHP 5.2

HTML5 video loop src change on end play function

Custom OpenCart 2.3.0.2 theme