$("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?
$("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?
This could solve your problem
It uses jQuery animate as
scrollTop()
has no callback function.