The handler passed to
.ready() is guaranteed to be executed after the DOM is ready, so this is usually the best place to attach all other event handlers and run other jQuery code.
JQuery Ready() Syntax
It contain parameter called handler which defines function that should be loaded after the document is loaded.
JQuery Ready() Example
- When you run the example, you will get line Click Here. After clicking on this line, alert box will display with specified message.
When you run the above example, you would get the following output: