Chaim
Chaim

Reputation: 2149

Jquery detect when div has scrolled to the bottom?

Searching for this on Google yields numerous results which I could not get to work. What is an absolute method of detecting when a user has reached the bottom of a div? That is when the user has scrolled to the bottom of the div which has scrollbars of its own.

Upvotes: 0

Views: 363

Answers (1)

Akhil Uddemarri
Akhil Uddemarri

Reputation: 301

should be something like if the scrollHeight = scrollTop + offsetHeight of the element then you reached the bottom.

Upvotes: 2

Related Questions