O'Reilly logo

CoffeeScript Application Development Cookbook by Mike Hatfield

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

Working with jQuery

jQuery is undoubtedly one of the most widely used JavaScript libraries in use today. It alone is used by nearly 57 percent of all websites in the world and has a whopping 92 percent market share in the JavaScript library space.

Tip

For more information on jQuery, you can visit the project home page at http://jquery.com/.

In this section, we will look at writing jQuery code to use with jQuery and some of jQuery's most popular plugins.

Executing on load

When a web page first loads, jQuery will trigger a document.ready event allowing you to execute code before the page begins rendering. This is the opportune time to execute any initialization code.

Getting ready

Our jQuery examples will be based on a basic HTML file with the following ...

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