14 Apr, 2009
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
Love what you've just read? Subscribe to our newsletter to receive tips, resources and special offers related to web development & design.
Hello! Welcome to Web development blog! My name is Ei Sabai and on this blog, I write about web development, mobile app development, latest web technologies and the likes. Read more 

