jackfranklin
-
jQuery "return false"
An easier way is to pass the event throught the function and use the preventDefault function in jQuery: $(\"li\").click(function(event) { event.preventDefault(); //link wont go to destination now ..do the rest of your stuff... });