basic jquery install issue: why is the jquery library not loaded
I am brand new to jquery and trying to get it installed on a page
following this tutorial. Based on that example, the head of my HTML
document looks like this:
<head>
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
alert("test");
}
</script>
</head>
I would assume that this would trigger an alert box "test" when the page
loads (showing that I sucessfully installed jquery) but this is not the
case. I am able to get to the URL from the google API in my script tag
using a browser so there should not be a networking issue 'finding'
jquery.
What am I missing?
No comments:
Post a Comment