Inline jQuery

Public

Inline jQuery using $() (as opposed to jQuery()) and wrapped in the necessary (document).ready().
(See 'Aliasing the jQuery Namespace': http://api.jquery.com/ready and 'Using jQuery': http://drupal.org/node/756722#using-jquery)

Get raw version
php
  1. drupal_add_js("jQuery(document).ready(function($) {
  2. // Code using $() as usual goes here
  3. });", 'inline');