Editor Arrow Download Open
<!DOCTYPE html> <html> <head> <title>jQuery dblclick() method</title> <script src="jquery-latest.min.js"></script> <script> $(document).ready(function(){ $("button").click(function(){ $("p").dblclick(); }); $("p").dblclick(function(){ $("span").fadeIn(500); $("span").fadeOut(500); }); }); </script> <style> span { display: none; color: red; } p { cursor: pointer; } </style> </head> <body> <div> <button class="btn1">Click Me</button> <br /> <p>Double click on this paragraph text</p> </div> <span style="">Double clicked</span> </body> </html>
  Preview Arrow