Javascript examples for jQuery:Hide
Select and hide the element with id="test".
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("#test").hide(); });/*w ww.j av a2 s .c o m*/ </script> </head> <body> <p>This is a paragraph.</p> <p id="test">This is a paragraph with id="test".</p> </body> </html>