Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jump to the bottom of the page with jQuery - Without animation

How can I jump to the bottom of the page with jQuery?

I don't want a smoother animation, just to 'jump'. All the other questions on this site I found seem to involve an animation.

like image 288
Evanss Avatar asked Aug 20 '13 12:08

Evanss


3 Answers

This will do

$('html, body').scrollTop( $(document).height() );

scrollTop( vHeight );

like image 197
iConnor Avatar answered Sep 20 '22 16:09

iConnor


WITH ANIMATION

$("html, body").animate({ scrollTop: $(document).height() }, "slow");

WITHOUT ANIMATION

$('html, body').scrollTop( $(document).height() );
like image 45
Deepak Biswal Avatar answered Sep 21 '22 16:09

Deepak Biswal


$('#smthn').scrollTop(99999999999);

99999999999 is the max input for jquery and it can take element to the last scrolling position.

like image 22
Amir Rahman Avatar answered Sep 20 '22 16:09

Amir Rahman