How to find out the end of a scroll event for a <div> tag
I need to call a function if the end of the scroll has reached the div tag.
$("#page").bind("scroll",function(e){ //page is the ID of the div im scrolling
if (document.body.scrollHeight - $(this).scrollTop() <= $(this).height())
{
//the code here is called every time the scroll is happened i want to call
//this only when the scroll reaches the end of div
}
});
+5