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 Ways to Include jQuery in a Project

Why my program is not running properly?

Hi there i'm feeling trouble with this code.My program is not running properly.What's the wrong here?

<!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="//code.jquery.com/jquery-1.11.3.min.js"></script> <script type="text/javascript" charset="utf-8"> $(document).ready(function(){ $(".warning").hide().show("slow"); }); </script> </body> </html>

1 Answer

leong shing chew
leong shing chew
5,618 Points

was there suppose to be a warning class on the span? you are selecting a warning class but there is no corresponding class in the html.