Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Introduction to jQuery DOM Manipulation Removing Content from the Page

Rushabha Jain
Rushabha Jain
881 Points

Scroll method is not working

I used the following jquery for scrolling

$('body').scroll(function(){ console.log("Scrolling is occuring"); $('img').css("display","none").fadeIn(1600); });

1 Answer

Hi Rushaba

Another fellow has already asked this question, I just saw your thread now... You can't scroll the body, as it is not scrolling at all. Try $(window) instead :-)

Egarat