Use it for questions about JavaScript code that is very specific for Drupal.

Drupal provides APIs to work with JavaScript and AJAX. These APIs shouldn't be ignored when working with JavaScript in the context of Drupal. Drupal uses jQuery and jQuery UI intensively. Drupal 7 does it in a way that keeps it compatible with other JavaScript libraries, but for earlier releases of Drupal, care must be taken when adding additional libraries.

Code Language (used for syntax highlighting): default