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

Michael Bredthauer
Michael Bredthauer
13,429 Points

My jQuery isn't working in Dreamweaver

I am in the tutorial and using the project files in Dreamweaver, the "Its a trap" animation isn't working and I have everything exactly as they have it in the video and in the workspaces, ,why isn't it working when I preview it in any browser (chrome, safari, and firefox)

3 Answers

Its possible it could be the editor or the code. If there is a console output look at the markers and look for any red to represent errors. Does the problem occur on another tool than dreamweaver?

Sean T. Unwin
Sean T. Unwin
28,690 Points

Are you calling jQuery from a CDN or a local directory? If from a CDN it won't work unless the page is being run from a server, like localhost. So if you don't have a local server set up then download a copy of jQuery and put it inside the directory where you are putting JavaScript files and call it from there.

Michael Bredthauer
Michael Bredthauer
13,429 Points

I'm calling it from a cdn, I copy and past it directly from j query .com and it doesn't work.