My html page don't works because my script is not loading. The script I'm using is as follows:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
This is the error:
Failed to load resource: net::ERR_FILE_NOT_FOUND file://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js
Can you see the problem? I just copied the scripts src from google hosted libraries.
JQuery is a JavaScript framework and library that adds CSS-like selectors, animations and handy functions to your Web programming arsenal. When jQuery scripts fail to work on your Web server, chances are the jQuery file is missing or you did not include it correctly in your HTML code.
You can just type window. jQuery in Console . If it return a function(e,n) ... Then it is confirmed that the jquery is loaded and working successfully.
I think you're testing this using an HTML file on your local file system. //
with no protocol specified is assuming file://
because of this.
You need put http:// before the URL. Try it: http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With