filmov
tv
Jquery prevent default behaviour
Показать описание
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:
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: