Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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
218,861 Points

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

works in chrome for me