jQuery Hide/Show
<!DOCTYPE html> <html> <head> <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script> </head> <body> <button id="hideBtn">Hide</button> <button id="showBtn">Show</button> <p>This is a paragraph.</p> <script> $("#hideBtn").click(function() { $("p").hide(); }); $("#showBtn").click(function() { $("p").show(); }); </script> </body> </html>