I am learning to program and come across something that should be very simple, but I had three days of disappointment.
I can't get the jQuery file to link to my html.
Here is my HTML:
<html> <head> <title>Title</title> <link type="text/css" rel="stylesheet" href="stylesheet.css"/> <script src="/jquery-2.0.3.min.js"></script> <script type="text/javascript" src="/script.js"></script> </head> <body> <div class="heads"> <div id="about"> <p>About.</p> </div> <div id="work"> <p>Work.</p> </div> <div id="contact"> <p>Contact.</p> </div> </div> </body>
And here is jQuery:
$(document).ready(function() { $('div').click(function() { $(this).fadeOut('fast'); }); });
This is not the last jQuery, but I was sure that it should work.
Thank you so much in advance!
Hauk1 source share