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 trialAsad Kashmiry
Courses Plus Student 2,171 PointsWhy 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
5,618 Pointswas 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.