event.preventDefault()
In jQuery, event.preventDefault() is used to prevent the default action or behavior of an event. . If this method is called, then the default action of the event will not be triggered. Like, if we apply this method on click event of an anchor tag, then browser will not follow the anchor link.
Continue reading