simple jQuery script not running

Posted by romaer on Stack Overflow See other posts from Stack Overflow or by romaer
Published on 2012-12-18T14:56:49Z Indexed on 2012/12/19 5:03 UTC
Read the original article Hit count: 138

Filed under:

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

© Stack Overflow or respective owner

Related posts about jQuery