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.