jQuery click event occurs when you double-click on an html element. It can be a button, span, div, hyperlink and paragraph.
It is an inbuilt function of jQuery.
jQuery dblclick() Method Syntax
$(selector).dblclick(function(){
//block of code that runs when the click event triggers
});
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").dblclick(function(){
alert("The button was double-clicked two times.");
});
});
</script>
</head>
<body>
<button>Double-click on this Button.</button>
</body>
</html>
Run it Yourself »