YouTip LogoYouTip

Event Holdready

# jQuery.holdReady() Method [![Image 3: jQuery Event Methods](#) jQuery Event Methods](#) ## Example HTML element right-click triggers event $.holdReady(true) $(document).ready(function(){ $("#first").click(function(){alert("Popup after releasing delay"); })}) $("#second").click(function(){ $.holdReady(false); }) [Try it Β»](#) * * * ## Definition and Usage The _$_.holdReady() function is used to pause or resume the execution of the .ready() event. **Note:** 1. This method must be called early in the document, for example, immediately after loading the jQuery script in the head. If called after the ready event has already been triggered, it will have no effect. 2. First call $.holdReady(true) [after calling, the ready event will be locked]. When ready to execute the ready event, call $.holdReady(false). 3. Multiple locks can be added to the ready event, each corresponding to one $.holdReady(false) call. The ready event will be triggered when all locks are released and the page is ready. * * * ## Syntax _$_.holdReady( hold ) | Parameter | Description | | :--- | :--- | | _hold_ | Boolean type indicating whether to pause or resume the requested ready event | * * jQuery Event Methods](#)
← Sel Multipleattribute Equal VaMisc_Data β†’