Add an external jQuery based library How can we add an external javascript library that relies on jQuery by calling $(document)??

As Drupal 7's jQuery needs to be encapsulated, adding the library just generates errors:


  $(...) is not a function


I don't understand the point of not being able to use $ directly anymore.
And adding jQuery as an external library seems to conflict with the Drupal's one

Thanks for the help
Use drupal_add_js() for this.

Please also check these resources; they could help you out.

For using other versions of jQuery, there is the jQuery Update module.