I keep getting Uncaught ReferenceError: $ is not defined in Chrome. Also, tried including the js file just after the closing body tag but doesn't work.
HTML code:
<head>
<title>Task 7 | Jquery</title>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<script type="text/javascript" src="jquery/userlist.js"></script>
</head>
<body>
<input id="filter" type="text" placeholder="Search" />
</body>
JQuery script:
$(document).ready(function () { // getting the error here
$('#filter').click(function () {
$("#filter").hide();
});
});