O'Reilly logo

jQuery and JavaScript Phrasebook by Brad Dayley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Accessing jQuery in Your JavaScript

jQuery("#myElement") . . . or . . . $("#myElement")

jQuery is accessed using the jQuery object that is defined when the library is loaded. jQuery also provides a shortcut $ character that you can use in the phrases throughout the book. For example, the following two jQuery statements are identical:

jQuery("#myElement") $("#myElement")

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required