-
Book Overview & Buying
-
Table Of Contents
Coffeescript Application Development Cookbook
By :
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.
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.
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.
Our jQuery examples will be based on a basic HTML file with the following structure:
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery Examples</title> </head> <body> <!-- Your CoffeeScript code goes here --...
Change the font size
Change margin width
Change background colour