how to make the prevent default in jquery for event listener code example Example: jquery preventdefault $("a").click(function(event){ event.preventDefault(); });