$('#example').on( 'page.dt', function () { $('.dataTables_scrollBody').animate({ scrollTop: 0 }, 300); });