can't get started - FIX
can't get started - FIX
I couldn't get a basic example to work for a while, searched all over for answers, never found one that worked for me. Then I figured it out. Maybe this will save someone time. My error? I used the non-minified code which I had been instructed to use by various sources that said it would work the same as the compressed (minified) code. It didn't for me. I couldn't call it. When I switched to the compressed version it worked. Below is the simple code I used just to get started which drove me nuts trying to figure out until I realized the root was the fact the library wasn't functional.
<!DOCTYPE html>
<html>
<head>
<script src="jquery.js"></script>
<script>
$(document).ready(function(){
$("p").click(function(){
$(this).hide();
});
});
</script>
</head>
<body>
<p>If you click on me, I will disappear.</p>
</body>
</html>
Frustration solved. Hope this save someone some time.