Tag: $ is not an object

Drupal 7 Tips: Fixing “$ is not an object” in JavaScript code

(I almost named this, “Drupal 7 wants you to use $ for money, not your jQuery.)

I ran into an API change issue yesterday when working on upgrading Fill PDF to be fully Drupal 7-compatible, and just today, someone on IRC ran into the same issue. She suggested that “somebody” write a blog post about it, so I thought I would. I hope it saves some random Internet searcher a few hairs.

Basically, you can no longer use jQuery’s shortcut variable $ in Drupal 7 instead of the full jQuery variable.