jookyboi
11/13/2013 - 8:02 PM

Check whether user has scrolled to the bottom of the container. From http://stackoverflow.com/questions/6271237/detecting-when-user-scrolls-

Check whether user has scrolled to the bottom of the container. From http://stackoverflow.com/questions/6271237/detecting-when-user-scrolls-to-bottom-of-div-with-jquery

jQuery(function ($) {
  $("#flux").bind("scroll", function () {
    if (
      $(this).scrollTop() + $(this).innerHeight() >=
      $(this)[0].scrollHeight
    ) {
      alert("end reached");
    }
  });
});