I need a simple solution, to fire an event when user scroll the page to a certain div. i want to show that div which is currently collapsed.
Asked
Active
Viewed 51 times
1 Answers
2
$(window).scroll(function(event) {
console.log($(".target").offset().top < $(window).scrollTop() + $(window).outerHeight());
});

Community
- 1
- 1

Mathias Dewelde
- 665
- 9
- 19
-
Thanks, i know it was very obvious question. but i didnt know how to ask this. – A.J. Mar 19 '14 at 14:15