I got this code:
$('#la_freccia_dx').bind('click', function(){
boutique_next();
});
In my html markup I prevent the page to scroll up using this code:
<a id="la_freccia_dx" href="#" onclick="boutique_next(); return false;">
But now it works only for the first time I click the link. I need to attach the return false to my jquery function up above and prevent the default action of the link. Any idea?
Thanks!
SOLVED: MY FAULT! I left a href=”#” in the markup. Thanks everyone!
Use jQuerys “event.preventDefault()”:
I would have done it like this:
With my HTML as: