jQuery Basics

The document ready function

$(document).ready(function(){
// jQuery programming goes here
}); // end ready

This is only required when you include your javaScript in the head of your document before html – because you often use JS to manipulate existing HTML on the page, you’ll need to wait until all the elements have loaded before executing any JS commands.

Leave a Reply

Your email address will not be published. Required fields are marked *