jQuery code not working
<html>
<head>
<title>Learn jQuery</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js">
$(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> Learn jQuery
Just check the page and you will see that the paragraph doesn't disappear when clicked. Please help me to solve this problem.
-
Andrew H -
Thanks
Signature"You shouldn't come here and set yourself up as the resident wizard of oz." {{ DiscussionBoard.errors[8200610].message }} -
-
Andrew H -
Thanks
Signature"You shouldn't come here and set yourself up as the resident wizard of oz." {{ DiscussionBoard.errors[8200616].message }} -