StefiIOE

removing button

Jun 20th, 2020
829
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <script src = "jquery-3.5.1.min.js"></script>
  5.     <script>
  6.         $(document).ready(function () {
  7.             $("button").click(function () {
  8.                 $(this).hide();
  9.  
  10.             });
  11.  
  12.         });
  13.     </script>
  14. </head>
  15. <body>
  16. <h2>This is a header.</h2>
  17. <p>This is a paragraph.</p>
  18. <p>This is another paragraph.</p>
  19. <button>Click me!</button>
  20. </body>
  21. </html>
RAW Paste Data