Chapter 3. jQuery: Do More with Drupal

In the last chapter, we built our first Drupal JavaScript. There, we used only standard JavaScript functions and tools to build our printing library. One of the benefits of working with Drupal is having access to libraries bundled with the core Drupal platform.

In this chapter, we will look at one such library: jQuery. Specifically, we will look at the following:

  • An overview of the jQuery library

  • The basics of using jQuery

  • Using jQuery within Drupal

  • Building a sticky node rotation tool with jQuery

  • jQuery effects, DOM manipulation, and events

As of Drupal 6, jQuery plays a major role in Drupal-centered JavaScript. For this reason, we will make a heavy use of jQuery in the remainder of this book. By the end of this ...

Get Drupal 6 JavaScript and jQuery now with O’Reilly online learning.

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