Callback on scrollTop

jquery

Solution

This could solve your problem

$('html').animate({
   scrollTop: $(document).height()
}, function(){
   $("#page_jump_input").focus();
});

It uses jQuery animate as `scrollTop()` has no callback function.

Problem

``` $("html").scrollTop($(document).height(),function(){ $("#page_jump_input").focus(); }); ``` I can't get a callback function to work on the method `scrollTop()`. The scrolling works, but the callback wont. Where am I going wrong?

Original source