Disable a Hyperlink using JQuery


$('.my-link').click(function(e) { e.preventDefault(); }); 

You could use:

$('.my-link').click(function(e) { return false; });


$(".my-link").each(function() {
    $(this).attr("data-oldhref", $(this).attr("href"));
    $(this).removeAttr("href");
});


$('.my-link').bind('click', false);

And to unbind / re-enable:

$('.my-link').unbind('click', false);