Pagination
Pagination
findingsimple
Posts: 2Questions: 0Answers: 0
I've got an implementation of datatables with pagination where the pagination buttons are nearly always below the fold. When a user clicks the next or previous buttons (or any of the pagination buttons really) I'd like to kick them back to the top of page. At the moment it kinda takes them half way.
Best method to do this?
I had a look at the callback info but couldn't figure out if any of them would be useful.
Any help is greatly appreciated and thanks in advance.
Best method to do this?
I had a look at the callback info but couldn't figure out if any of them would be useful.
Any help is greatly appreciated and thanks in advance.
This discussion has been closed.
Replies
[code]
jQuery( ".ui-button" ).live("click", function(){
jQuery('body,html').animate({
scrollTop: 0
}, 200);
return false;
});
[/code]