Preventing Anchor links from loading in JQuery

Goud.Kv
Posted by Goud.Kv under jQuery category on | Points: 40 | Views : 328
Below code snippet resolves preventing Anchor links from loading.

$("a").on("click", function(event){
event.preventDefault();
});


'preventDefault()' prevents the links to load.

Comments or Responses

Login to post response