How to attach double click event to an element in jQuery – .dblclick()

To attach double click event to an element, dblclick() method can be used that fires when the element is double clicked.

$("#btnDblClick").dblclick(function () {
alert("dblclick event called");
});

Above code will execute when user double click the “btnDblClick” button.

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.