Why is my jQuery not working?
I just finished the introductory course on Codecademy and I wanted to use
it on a web project but I can't seem to get it working.
test.html
<html>
<head>
<title>jQuery</title>
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="test.js"></script>
</head>
<body>
<p style="font-family: verdana;">wfef</p>
</body>
</html>
test.js
$(document).ready(function() {
$('p').click(function() {
$(this).hide();
};
});
No comments:
Post a Comment