Jquery prevent default behaviour

preview_player
Показать описание
Use preventDefault() function to prevent link default behavior.
In this example, when you click jquery link, it will not direct to the link page, instead it will produce an alert, define in jQuery function.
code:
$(document).ready(function(){
$("a").click(function(event){
});
});
More about this:
Рекомендации по теме