A repository of over 1000 quality jQuery plugins

jQuery event.preventDefault()

Learn all about the jQuery function event.preventDefault().

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.