Sammy
Sammy

Reputation: 33

JQuery Problem: Why doesn't $(document).scroll() work in IE?

This simple code works in firefox but not IE (8 and below). Is there a way to make it work?

$(document).scroll(function() {
    alert('foo');
});

I'm just trying to detect when the user is scrolling on a page.

Upvotes: 3

Views: 1780

Answers (1)

lomaxx
lomaxx

Reputation: 115885

you can try using $(window).scroll()

Upvotes: 5

Related Questions