Hello,
I wrote some jQuery and tested it. I found out that it wasn't working, so I replaced it with an alert to be alerted when the document is ready.
However, when I view the page I see that the alert is never alerted even after the page fully-loads and is ready.
I went into developer tools and I got an error that says, "Uncaught ReferenceError: $ is not defined" pointing to the line my $(document).ready(); is at.
So this means the document.ready() is never being executed due to the above error.
Can someone help me fix this so that it works like it should?
I'd appreciate any and all help! :-)
Here is my (few lines of) code so far:
- <script type="text/javscript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- alert("hello, world!");
- });
- </script>
Thanks in Advance!