Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 2. Working with jQuery in WordPress > Launching a jQuery script

Launching a jQuery script

Most of the time you'll want your script to launch and/or be available as soon as the DOM is loaded and ready. For this, you can use the standard "on document ready" technique as follows:

jQuery(document).ready(function(){
// Your jQuery script go here
});


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial