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 jQuery Basics (2014) Introduction to jQuery What is jQuery?

Using Notepad++, copying directly the code from Workspaces and still no preview will appear with Ackbar.

My code is copied DIRECTLY from Workspaces which is previewing correctly to match that what the instructor is showing in the video. However, when I try and use Notepad++ I cannot get it to preview correctly. Have no idea why!

HTML:

<!DOCTYPE html> <html> <head> <title>Take Evasive Action</title> <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" title="no title" charset="utf-8"> </head> <body> <p class="warning"> <span>It's A Trap!</span> </p> <div class="image"> <img src="img/ackbar.gif" /> </div> <script src="http://code.jquery.com/jquery-1.11.0.min.js" type="text/javascript" charset="utf-8"></script> <script src="js/app.js" type="text/javascript" charset="utf-8"></script> </body> </html>

Javascript:

//hide warning jQuery(".warning")/.hide(); //show warning slowly

Nursultan Bolatbayev
Nursultan Bolatbayev
16,774 Points

It is very strange that you use Notepod++ for editing code. Try to use free Atom or Brackets

2 Answers

Steven Parker
Steven Parker
231,269 Points

Did you also download the image, and put it in a folder named "img"?

works in chrome for me