How Prevent default behaviour using jQuery

Sometimes you will need Prevent Default Behaviour of the browser so that you can assign your custom functionalities to handle any event. For example: in your page you have some article links which will take you to the article pages when clicked. But you want to show the articles in the same page with a Modal. So first you will have to Prevent default behaviour for your article links. Otherwise the browser will take you to the article page when the link is clicked. And then you can display the articles in the same page using Modal.

Continue reading