I have a div with overflow:scroll.
I want to know if it\'s currently scrolled all the way down. How, using JQuery?
This one doesn\'t work: How can I determin
Here is the code:
$("#div_Id").scroll(function (e) { e.preventDefault(); var elem = $(this); if (elem.scrollTop() > 0 && (elem[0].scrollHeight - elem.scrollTop() == elem.outerHeight())) { alert("At the bottom"); } });