Prev Demo
jQuery
>
.Dblclick() - Attach Double Click Event
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> <style> #btnDblClick { color:red; } p{ color:green; } </style> </head> <body> <input type="button" name="btn1" id="btnDblClick" value="Click Here"/> <br /> <p>By Double clicking on the above button you can declare the Double click event.</p> <script> $("#btnDblClick").dblclick(function () { alert("dblclick event called"); }); </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output