♦ jQuery dblclick()
♣ Example2: jQuery dblclick()
The dblclick() method is used, when we need an action to be performed upon double click.The click is done on HTML element.
Below is the representation of dblclick() Syntax.
Basic Syntax
$(selector).dblclick(function(){
//code_block
})
//code_block
})
Syntax Explanation:
selector : element selector for event to be performed
code_block : code for execution, which will execute when event is performed
In this example, .code_block : code for execution, which will execute when event is performed
Example
Input:
Output: