$() jquery document 1

$() jquery document

// A $( document ).ready() block.
$( document ).ready(function() {
    console.log( "ready!" );

Here is what the above code is Doing:
1. We’re using the jQuery library to select the document object.
2. We’re using the ready() method to make a function available after the document is loaded.
3. We’re using the console.log() method to display a message in the console once the document is loaded.

Similar Posts