treehouse : what would you like to learn today?
Web Design Web Development iOS Development

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... });
    Comment by jackfranklin April 2009 permalink