<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
$('div'); // <--- THIS DOESN'T WORK
</script>
I’m getting an error in the above code. And when checking in the .js code I can’t find a function named $, but according to the documentation there’s supposed to be one.
Try
http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js. Notice thehttp:in the beginning.Even though it should work without that as well. I guess you were trying to open your HTML locally (not on a server through HTTP) through
file://. In that case, of course a schemeless URL won’t work.