VOOZH about

URL: https://www.geeksforgeeks.org/jquery/jquery-ready-method/

⇱ jQuery ready() Method - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

jQuery ready() Method

Last Updated : 11 Jul, 2025

The jQuery ready() method helps to load the whole page and then execute the rest code. This method specifies the function to execute when the DOM is fully loaded. 

Syntax:

$(document).ready(function)

Parameters: This method accepts a single parameter function which is mandatory. It is used to specify the function to run after the document is loaded. 

Return Value: This method returns the document after performing the ready() method. 

Example 1: This example illustrates the ready() method in jQuery.

Output:

👁 Image

Example 2: In this example, we will animate the text in ready() method.

Output:

👁 Image
Comment
Article Tags:

Explore