Hi, I'm new to Jquery and Javascript in general and I can't get anything to work. I'm running Ubuntu with a LAMP server, I've downloaded the jquery.js file from this site and moved it into my www file along with test.html.
I've tried everything but I can't seem to get anything with Jquery to work, for example this code does nothing:
- <html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$("p").click(function(){
$(this).hide();
});
});
</script>
</head>
<body>
<p>If you click on me, I will disappear.</p>
<p>Click me away!</p>
<p>Click me too!</p>
</body>
</html>
Can anyone help?