Is it possible back to the top automatically after the visitors switch the pages?
It will be a problem when if need to scroll up and down for every 50-100 records.
Just did what allan said at the end and it can goes back to the top now.
Since I have multi tables, i change the line to:
var targetOffset = $('.name').offset().top;
But it looks like the script cannot detects it. I have to manual add another id on top instead of pulling the .name class. Are there any better solution? Not really sure how to modify mine one like strannic's..
The code in the linked thread looks like it should work over multiple tables. Can you link to a test case showing the problem that you are having please?
Replies
http://datatables.net/forums/discussion/158/autoscroll-to-top/p1
Since I have multi tables, i change the line to:
var targetOffset = $('.name').offset().top;
But it looks like the script cannot detects it. I have to manual add another id on top instead of pulling the .name class. Are there any better solution? Not really sure how to modify mine one like strannic's..
Allan