The jQuery ready event will be triggered in two instances:-
- Once the page has loaded for the first time.
- Any time the AJAX mechanism refreshes the page.
This can be useful for client-side tasks such as drawing a graph when the page loads and redrawing it when the data in the page changes.
You can create ready Event Handlers on any control and all these Handlers run when the jQuery event occurs irrespective of where the Control is on the page or whether it is showing.