CHAPTER 15

image

jQuery

The jQuery framework is a widely used JavaScript library designed to simplify DOM manipulation and eliminate browser incompatibilities.

Including jQuery

To include jQuery you can place the following reference in the <head> section of your web document. This loads the latest version of jQuery from Google’s Hosted Libraries service, which at the time of writing is version 1.11.3.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>

If you prefer to have a local copy of the script file, it can be obtained from jquery.com. However, linking to jQuery from a content delivery network (CDN), such ...

Get JavaScript Quick Syntax Reference 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.