JavaScript Example Information

Drupal includes jQuery and jQuery UI.

We have two examples of using these:

  • An accordion-style section reveal effect. This demonstrates calling a jQuery UI function using Drupal's rendering system.
  • Sorting according to numeric 'weight.' This demonstrates attaching your own JavaScript code to individual page elements using Drupal's rendering system.