I have a div with position \"fixed\" and I want to get the value of its position relative to the whole document while the user scrolls down the page.
So
($("div").offset().top - $(document).scrollTop())