jQuery Reference Guide

More Information
  • Get a broad overview of the jQuery library's capabilities with a real-world example
  • Examine any jQuery method, function, and selector in detail, wherever and whenever it is needed
  • Investigate jQuery's plug-in architecture, using a variety of approaches to extend the library's capabilities
  • Explore the Dimensions plug-in for getting the size and position of any element on the page—even the document and browser window
  • Discover the Form plug-in for combining AJAX techniques with HTML forms

In Chapter 1, Anatomy of a jQuery Script, we begin by dissecting a working jQuery example. This script will serve as a roadmap for this book, directing you to the chapters containing more information on particular jQuery capabilities.

The heart of the book is a set of reference chapters that allow you to quickly look up the details of any jQuery method. Chapter 2, Selector Expressions, lists every available selector for finding page elements.

Chapter 3, DOM Traversal Methods, builds on the previous chapter with a catalog of jQuery methods for finding page elements.

Chapter 4, DOM Manipulation Methods, describes every opportunity for inspecting and modifying the HTML structure of a page.

Chapter 5, Event Methods, details each event that can be triggered and reacted to by jQuery.

Chapter 6, Effect Methods, defines the range of animations built into jQuery, as well as the toolkit available for building your own.

Chapter 7, AJAX Methods lists the ways in which jQuery can initiate and respond to server communication without refreshing the page.

Chapter 8, Miscellaneous Methods, covers the remaining capabilities of the jQuery library that don't neatly fit into the other categories.

In the final three chapters, we dive into the extension mechanisms jQuery makes available. Chapter 9, Plug-in API, reveals four major ways to enhance jQuery's already robust capabilities using a plug-in. The chapter shows how to use plug-ins and we develop a custom plug-in from the ground up.

Chapter 10, Dimensions Plug-in, walks you through the advanced measurement tools available in this popular plug-in.

Chapter 11, Form Plug-in, empowers you to bring AJAX technology and HTML forms together, a process which is made easy by this plug-in.

Appendix A, Online Resources, provides a handful of informative websites on a wide range of topics related to jQuery, JavaScript, and web development in general.

Appendix B, Development Tools, recommends a number of useful third-party programs and utilities for editing and debugging jQuery code within your personal development environment.


jQuery is a powerful, yet easy-to-use JavaScript library that helps web developers and designers add dynamic, interactive elements to their sites, smoothing out browser inconsistencies and greatly reducing development time. In this book, the creators of the popular jQuery learning resource, learningquery.com, share their knowledge, experience, and enthusiasm to bring you a comprehensive reference to the popular JavaScript library.

This book offers an organized menu of every jQuery method, function, and selector. Each method and function is introduced with a summary of its syntax and a list of its parameters and return value, followed by a discussion, with examples where applicable, to assist in getting the most out of jQuery and avoiding the pitfalls commonly associated with JavaScript and other client-side languages.

If you're already familiar with JavaScript programming, this book will help you dive right into advanced jQuery concepts. You'll be able to experiment on your own, trusting the pages of this book to provide information on the intricacies of the library, where and when you need it. If you're still hungry for more, the book shows you how to cook up your own extensions with jQuery's elegant plug-in architecture.

This book is a companion to Learning jQuery: Better Interaction Design and Web Development with Simple JavaScript Techniques.
Learning jQuery begins with a tutorial to jQuery, followed by an examination of common, real-world client-side problems, and solutions for each of them, making it an invaluable resource for answers to all your jQuery questions.

jQuery Reference Guide digs deeper into the library, taking you through the syntax specifications and following up with a detailed discussion. You'll discover the untapped possibilities that jQuery makes available, and hone your skills as you return to this guide time and again.

  • Organized menu to every method, function, and selector in the jQuery library
  • Quickly look up features of the jQuery library
  • Understand the anatomy of a jQuery script
  • Extend jQuery's built-in capabilities with plug-ins, and even write your own


Page Count 268
Course Length 8 hours 2 minutes
ISBN 9781847193810
Date Of Publication 29 Jul 2007
The jQuery Factory Function
Filtering Methods
Tree Traversal Methods
Miscellaneous Traversal Methods
General Attributes
Style Properties
Class Attribute
DOM Replacement
DOM Insertion, Inside
DOM Insertion, Outside
DOM Insertion, Around
DOM Copying
DOM Removal
Event Handler Attachment
Document Loading
Mouse Events
Form Events
Keyboard Events
Browser Events
Low-Level Interface
Shorthand Methods
Global AJAX Event Handlers
Helper Function


Jonathan Chaffer

Jonathan Chaffer is a member of Rapid Development Group, a web development firm located in Grand Rapids, Michigan. His work there includes overseeing and implementing projects in a wide variety of technologies, with an emphasis on PHP, MySQL, and JavaScript. In the open source community, he has been very active in the Drupal CMS project, which has adopted jQuery as its JavaScript framework of choice.Jonathan is the creator of the Content Construction Kit, now a part of the Drupal core, used for managing structured content. He is also responsible for major overhauls of Drupal's menu system and developer API reference. In his spare time, he designs board and card games for the hobby market. He lives in Grand Rapids with his wife, Jennifer.

Karl Swedberg

Karl Swedberg is a web developer at Fusionary Media in Grand Rapids, Michigan, where he spends much of his time writing both client-side and server-side JavaScript. When he isn't coding, he likes to hang out with his family, roast coffee in his garage, and exercise at the local gym.