1. Using Selectors

One of the strengths of the jQuery library is that it gives you the ability to easily select and interact with Document Object Model (DOM) elements in your web pages.

The selectors will be familiar to you if you’ve done any web development with Cascading Style Sheets (CSS), because jQuery’s selector syntax is nearly a duplicate of the selectors you’d use when preparing style properties for your websites. jQuery makes use of the Sizzle JavaScript CSS selector engine, which was developed by John Resig, the creator of jQuery. The jQuery library also adds several specific selector extensions to enhance the library’s syntax and make the library ...

Get jQuery and jQuery UI: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.