I need to check if the user has scrolled to the end of a list item <li>
on my page. I want to perform an AJAX call, when this happens.
How to know if the user has scrolled to the last list item.
This is what I've tried till now.
if ($('li:last').is(':visible')) {
alert('Scrolled to last li');
}
But, unfortunately it is not working.