Jump to top when clicking next.
BreunesseICT opened this issue · 5 comments
Dear Sirs,
I use jpages, i like the script, but i have one question:
If i click next or previous in my navigation, i want to jump to the top of te page, is that possible?
thx in advance!
I found the solution:
callback : function( pages, items ){
$('html').animate({scrollTop:0}, 'slow');//IE, FF
$('body').animate({scrollTop:0}, 'slow');//chrome, don't know if safary works
}
Hi there!
I have the same problem and the solution above doesn't work for me. I'm also trying to implement this example which works inside tag as an anchor: http://www.webdevtuts.net/javascript/how-to-make-page-scroll-to-top-of-page-using-jquery/ , but it also doesn't work at all!
In my case, I need that the div which has the pagination go to top by clicking tag of pagination (Previous, numbers and Next), such as Google Search does.
Could someone help me?
I'm using this:
$(".holder a:not('.jp-current')").on("click", function () {
$('html,body').animate({
scrollTop: 275
}, 800);
});
I have same problem.
webpopular
Where should I insert the code in jquery.pagination.js?
I have same problem.