I have the following line of code in my head:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"/>
I have the following lines of code at the beginning of my body:
<script>
$(function () {
alert("JQUERY!");
});
</script>
My JavaScript Console gives the following error:
Uncaught ReferenceError: $ is not defined
I am using Google Chrome.
I have read all of the answers at JQuery - $ is not defined, but as far as I can tell, I am obeying everything there. I have confirmed that the link in the first script is valid.
I would expect jQuery to load, but it is failing to do so (silently). What is the correct syntax to make jQuery load from the CDN?