It helps to bind an event handler to the “dblclick” JavaScript event, or trigger that event on an element.
// When double-clicking on this element displays the alert:
$( “#target” ).dblclick(function() {
alert( “Handler for .dblclick() called.” );
});