I need to get an event when scroll reaches bottom of div and as per the below code I'm getting event for scroll reaches bottom, but the thing is that I'm getting more than one events and it is firing concurrently as long as scroll is in the bottom.
So is there any way to stop firing events continuously rather than firing events after processing the first event occured?
$("#divid").bind('scroll', function() {
//Getting continuous event as far as scroll is in bottom
if($('#divid')[0].scrollHeight - $('#divid').scrollTop() <= $('#divid').outerHeight())
{
//Code here---
}
});