Click to Test Popup
Easy Tutorial
❮ Traversing Slice Jq Sel Focus ❯

jQuery.holdReady() Method

jQuery Event Methods

Example

HTML element right-click trigger event

<button id="first">Click to Test Popup</button>
<button id="second">Release Delay</button> 
<script>
$.holdReady(true)      
$(document).ready(function(){ 
    $("#first").click(function(){ 
        alert("Popup after releasing delay"); 
    }) 
}) 
$("#second").click(function(){ 
    $.holdReady(false); 
})
</script>

Definition and Usage

$ .holdReady() function is used to pause or resume the execution of the .ready() event.

Note: 1. This method must be called in the early part of the document, for example, immediately after loading the jQuery script in the head. If this method is called after the ready event has already been triggered, it will not have any effect.


Syntax

Parameter Description
hold Boolean type indicating whether to pause or resume the requested ready event

jQuery Event Methods

❮ Traversing Slice Jq Sel Focus ❯