TutorialKart
index.html
►
Run
Reset
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("p").dblclick(function(){ alert("You double clicked a paragraph."); }); }); </script> </head> <body> <p>A paragraph.</p> <p>Another paragraph.</p> <a>Nothing happens when you click on this, cause this is anchor.<a/> </body> </html>