So, in chrome and normal browsers
$('.selector').scrollTop(9999999999999999);
will scroll to the bottom, but not in IE.
How do I do this in IE?
So, in chrome and normal browsers
$('.selector').scrollTop(9999999999999999);
will scroll to the bottom, but not in IE.
How do I do this in IE?
The number you are supplying to the function exceeds the max value of a Number
in JavaScript.
9999999999999999 //Your number
9007199254740992 //Number.MAX_VALUE in JavaScript
It's probably wrapping to a negative number, or being set to 0.
Try one of these instead:
$('.selector').scrollTop($(document).height());
Or
$('.selector').scrollTop(Number.MAX_VALUE);