FYI: I am learning how to code with an online tutorial. In this tutorial, we are learning javascript and jQuery. The point is to:
Hide an image with styles.css
img { display: none; }Show the image with scripts.js
$(function() { $("p").click(function() { $("img").show(); }); });The html is as follows:
<!DOCTYPE html> <html> <head> <link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all"> <link href="css/styles.css" rel="stylesheet" type="text/css" media="all"> <script src="js/jquery-1.9.1.js"></script> <script src="js/scripts.js"></script> <title>Peek-a-boo</title> </head> <body> <div class="container"> <h1>Peek-a-boo</h1> <p>Let's play peek-a-boo. Click here to see the surprise!</p> <img src="img/walrus.jpg"> </div> </body> </html>
WHAT WORKS:
The html page looked fine. The bootstrap css works. The image showed up fine. The css script hid the image just fine.
WHAT DOES NOT WORK:
The jQuery is not showing the image when I click the paragraph.
I have gone so far as to copy and paste the tutorial into sublime text 2, but it is still not working. I am 99% positive that everything is in the right folder.

Any ideas as to what could be the problem?!
display: noneand see if it shows.consoletab and type$("img").show();and hit enter to run the code. That should display the image if jQuery is loaded correctly. If not, you should get a nice error message to help you debug further.