simple jQuery script not running
- by romaer
I just have copied a simple script from W3School and cannot get it running:
Here it is:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://Web Testing/js/jquery-1.8.0.min.js">
</script>
<script>
$(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>
It works on their Tryit Editor with the following line but does not work even with
this line on my Mac under BBEdit