<html>
<head>
<title>JQuery beginning</title>
</head>
<body>
<script type="type/javascript" src="js/jquery.js"></script>
<p onclick="$(this).hide();">Test</p>
</body>
</html>
This is my html file. I have placed the downloaded js file in js folder inside the folder which is containing the above HTML file.
I am getting Uncaught ReferenceError: $ is not defined
, when I click on "Test," instead of its being hidden.