Use the correct selector to hide all elements in the document.

Use the correct selector to hide all elements in the document.

Syntax hint: $(“*”)

<!DOCTYPE html>
<html>
<head>
$(document).ready(function(){
    $(“*”).hide();
});
</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>
This is a div element.
<button>This is a button</button>
</body>
</html>
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: