jQuery: how to tell if you’re scroll to bottom?

This is a question a jQuery user asked recently. It’s a simple question without a simple answer. There is no inverse equivalent to scrollTop=0 (i.e. scrollBottom=0) so the solution requires some thought. The scenario is this — we have a fixed height div with overflow:auto and we want to use JavaScript to programmatically scroll to […]