Editor Arrow Download Open
<!DOCTYPE html> <html> <head> <title>jQuery hide p elements</title> <script src="jquery-latest.min.js"></script> <script> $(document).ready(function() { $("button").click(function(){ $("p").hide(); }); }); </script> </head> <body> <p>First paragraph start here...</p> <p>Second paragraph start here...</p> <button>Click here to hide above all paragraph</button> </body> </html>
  Preview Arrow