14 Apr, 2009
If it is a current link, don’t do anything
Web Development » Snippets » If it is a current link, don’t do anything
$('ul.links li a').click(function(e){
if ($(this).hasClass('current')) {
// do nothing
} else {
// animation and other effects go here
}
e.preventDefault();
}
in jQuery






