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 Using jQuery Plugins Add a Sticky Navigation Bar Understanding Plugin Events

.on('sticky-start') not working

$(".header").on('sticky-start', function(){ $(".description").html('We build <strong>Great</strong> apps'); });

This code is exactly the same as the video but it does not work.

</body> <script src="js/jquery-1.11.2.min.js"></script> <script src="js/animsition/jquery.animsition.min.js"></script> <script src="js/sticky/jquery.sticky.js"></script> <script src="js/main.js"></script> </html>

console has no errors either. Im stumped

2 Answers

Hi Edward,

I pasted your code into my workspace and it works fine. So the error is not in the function you posted or in the script tags. Perhaps somewhere else?

Try to post the rest of your code or a snapshot perhaps. :)

Hey Elian thanks for the quick reply. I figured it out. It was my hosting server. I switched over to wamp and everything is now working fine!