jQuery .dblclick() double click

jQuery .dblclick() bind an event handler to the "double click" JavaScript event, or trigger that event on an element;


    $('.target').dblclick(function() { // bind an event handler to the double-click event
        $('.log').append(' double-click-event');
    $('.trigger').click(function() { // trigger the double-click event manually
        $('.log').append(' double-click-trigger');


<div class="well">
        <span class="target btn btn-primary">double-click me</span>
        <span class="trigger btn btn-inverse">click me to trigger double-click event manually</span>
    <div class="log alert alert-block">log</div>

3 thoughts on “jQuery .dblclick() double click”

Leave a Comment