$("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
$('html').animate({
scrollTop: $(document).height()
}, function(){
$("#page_jump_input").focus();
});
It uses jQuery animate as scrollTop()
has no callback function.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With