Editor Arrow Download Open
<!DOCTYPE html> <html> <head> <title>jQuery hide() show() method</title> <script src="jquery-latest.min.js"></script> <script> $(document).ready(function() { $("#show").click(function () { $("p").show(); }); $("#hide").click(function () { $("p").hide(); }); }); </script> <style type="text/css"> p { background-color: #99FFFF; font-size: 16px; } </style> </head> <body> <button id="btn1">Hide Paragraph</button> <button id="btn2">Show Paragraph</button> <p>This paragraph will be hide/show animated.</p> </body> </html>
  Preview Arrow