interactiveRob
5/1/2018 - 4:45 PM

jQuery prevent all link clicks on a page

jQuery prevent all link clicks on a page

$('a').each(function(){
    $this = $(this);
    $this.click(function(e){
        e.preventDefault();
    });
});