Demo of Double click event using JQuery

HTML


<input type=button value='Double Click me' id='b1'> 
<div id='t1' style="position:absolute;"></div>

jquery


<script>
$(document).ready(function() {

$("#b1").dblclick(function(){
$("#t1").html('You double clicked the button');
});


})
</script>