Javascript examples for jQuery:Hide
Select and hide all elements in the document.
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("*").hide(); });//from w w w . jav a 2 s .c o m </script> </head> <body> <h1>This is a heading</h1> <h2>This is another heading</h2> <p>This is a paragraph.</p> <p>This is another paragraph.</p> <div>This is a div element.</div> <button>This is a button</button> </body> </html>