I'm a newbie to javascript, so please forgive if I ask things that are painfully obvious.
I am using Sennajs for my personal project. I have a issue like in gallery example. When click a link, it makes the page jump to the top. I used to use this code from jquery to fix it. However it also prevents senna from working.
$('a').click(function(e) {
// do something
return false;
e.preventDefault();
});
Any help would be very appreciated.
You
returnbefore actually callingpreventDefault. The following will work: