Chapter 2. A first plugin

This chapter covers

  • The jQuery architecture
  • Creating a simple collection plugin

jQuery is a JavaScript library that makes it much simpler to interact with the elements on a web page. It’s typically used by finding elements of interest, either by direct selection or by traversing the DOM, then applying some functionality to those elements. You can manipulate elements—adding or removing them, or changing their attributes and properties—and add event handlers to them to respond to actions from the user. You can animate elements by changing their properties over time. And jQuery lets you use Ajax to request extra information from the server easily, without disrupting the current page and its contents.

In the previous ...

Get Extending jQuery 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.