I am trying to get the scrollTop value on scroll. In other words, the location of the scrollbar at a certain point in the page.
Why isn't this working?
$(document).scroll(function(){
alert($(document).scrollTop());
});
It is wrapped in $(document).ready(...