Revision: 35908
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 15, 2010 05:12 by lamebollock
Initial Code
$("a").click(function(event) { event.preventDefault(); //CODE });
Initial URL
http://api.jquery.com/event.preventDefault/
Initial Description
Description: If this method is called, the default action of the event will not be triggered. For example, clicked anchors will not take the browser to a new URL. We can use event.isDefaultPrevented() to determine if this method has been called by an event handler that was triggered by this event.
Initial Title
Prevent default event action
Initial Tags
event, jquery
Initial Language
jQuery