I have divs inside an outer div that has scrollbars. I can get a warning when the end of the outer div is reached while scrolling, but I want to get a warning when the end of each inner div is reached.
The html structure is as follows.
<html><head></head>
<body>
<div id = "outer" style= "width:200px;height:200px; overflow:auto;">
<div id = "#1" class = "inner"> blah blah </div>
<div id = "#2" class = "inner"> blah blah </div>
<div id = "#3" class = "inner"> blah blah </div>
<div id = "#4" class = "inner"> blah blah </div>
</div>
</body>
</html>
I want to be notified when the ends of divs # 1, # 2, # 3, # 4 are reached and the scrollbars are attached to the outer div.
Thanks in advance.
source
share