LOAD JQUERY

As mentioned earlier, if you choose to download the jQuery source code, after that, the next step is to load jquery.js into your website. If you choose to forgo downloading and use a CDN, you still need to load the jQuery source code into your website, but from the CDN’s URL.

Regardless of method, the syntax to load jquery-version'on.js into your HTML code’s <head> block is the same:

<script type='text/javascript'
     src='jquery-version.js'></script>

To find a list of CDN-hosted jQuery servers, go to the jQuery Project page at http://docs.jquery.com/Downloading_jQuery#CDN_Hosted_jQuery. The example below uses the code.jquery.com host, which is provided by Media Temple. Other versions available are hosted by Google and Microsoft. ...

Get HTML5: Your visual blueprint™ for designing rich web pages and applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.