jQuery ready() Method
jQuery ready() Method
The ready event is used to occur when the DOM (document object model) has been loaded. Therefore, it is good to have all of jQuery events and functions placed inside it. The ready() method is used to specify what happens when a ready event occurs.
Syntax:-
It has following syntax:- $(document).ready(function) , $(function)
Further Explanation:-
Parameter | Description |
---|---|
function | function. Specifies the function to run after the document is loaded |