Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <script src = "jquery-3.5.1.min.js"></script>
- <script>
- $(document).ready(function () {
- $("p").dblclick(function () {
- $(this).hide();
- });
- });
- </script>
- </head>
- <body>
- <p>If you double-click on me i will disappear.</p>
- <p>Me 2.</p>
- <p>Dont forget me.</p>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement