In this lesson, you will start gaining an understanding of jQuery and the way in which it can simplify interaction with the DOM.
The following are the main reasons why jQuery is used in so many web applications:
- It provides an intuitive and easy-to-learn API for performing the most common tasks in website development. For instance, the selection API you will use in this lesson is based on CSS selectors.
- It provides genuine cross-browser support and hides some of the quirks that exist in the DOM API implementations of certain browsers (most notably, older versions of IE).
- It is very easy to write plugins to enhance the capabilities of jQuery, and there are extensive libraries of freely available plugins on the Internet.
- The jQuery website contains extremely good documentation, and there is a wide variety of help available on the Internet if you encounter problems.
Before using jQuery, you need to import it into ...