How to move the ScrollBar Top position when paging

How to move the ScrollBar Top position when paging

mx.yuichimx.yuichi Posts: 1Questions: 0Answers: 0

I found that the code to move ScrollBar to Top position when you use paging.

$('div.dataTables_scrollBody').scrollTop(0);

Example:

$("#table")
.on('page.dt', function () {
$('div.dataTables_scrollBody').scrollTop(0);
});

lets try it

Sign In or Register to comment.