concept document in category jQuery
appears as: document, The document, document

This is an excerpt from Manning's book jQuery in Action, Third Edition.
First, you wrap the document object using the jQuery() function, and then you call the ready() method, passing a function to be executed when the document is ready to be manipulated. This means that inside the function passed to ready() you can safely access all of the elements of your page. A schema of the mechanism described is shown in figure 1.5.
$(document).on('mouseover', '#my-list li', function(event) { console.log('List item: ' + ($(this).index() + 1)); });