jQuery dblclick() Method

 

The dbClick event fires when you double clicked on the selected element.

Syntax : $(selection).dblclick();

Example : Change the text of <p> tag using this keyword on double click event handler

 
 
 
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script> <script> $(document).ready(function() { $("p").dblclick(function() { $(this).text("Web Solutions Company") }); }); </script> </head> <body> <p>APPWRK IT Solutions</p> </body> </html>
Output