jQuery Tutorial


jQuery Example


jQuery References


jQuery dblclick() Event Reference


  jQuery Events References


Uses

dblclick() Event occurs when the mouse double click.


Bind a Function to dblclick() event

Defined specific function run when the dblclick() event occurs on the selected elements.

Syntax

$(selector).dblclick(function) 

jQuery dblclick() events supported following parameters.

ParameterDescription
functionFunction is Optional parameter. Function define the ready to run when event occur.

Example

<script type="text/javascript"> 
$(document).ready(function(){
  $("input").dblclick(function(){
    $(this).css("background-color","pink");
  });
});
</script>
Online Try This Code Your Self....   »

Trigger the dblclick() event

Triggering the dblclick() event for a selected elements.

Syntax

$(selector).dblclick() 

Example

<script type="text/javascript"> 
$(document).ready(function(){
  $("input").dblclick(function(){
    $(this).css("background-color","pink");
  });
  $("button").click(function(){
    $("input").dblclick();
  });  
});
</script>
Online Try This Code Your Self....   »

  jQuery Events References