<!DOCTYPE html>
<html>
<title>W3.JS</title>
<script src="/Uploads/Public/article/webdistut/javascript/w3.js"></script>
<body>

<p>Click the button to hide the first p element inside div.</p>

<button onclick="w3.hide('p:nth-child(even)')">Hide</button>

<p>The FIRST paragraph.</p>
<p>The SECOND paragraph.</p>
<p>The THIRD paragraph.</p>
<p>The FOURTH paragraph.</p>
<p>The FIFTH paragraph.</p>

</body>
</html>

Click the button to hide the first p element inside div.

The FIRST paragraph.

The SECOND paragraph.

The THIRD paragraph.

The FOURTH paragraph.

The FIFTH paragraph.