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

<p>Click the button to hide all p elements inside div.</p>

<button onclick="w3.hide('div p')">Hide</button>

<div>
  <h2>Heading</h2>
  <p>This is a paragraph.</p>
  <p>This is also a paragraph.</p>
</div>

</body>
</html>

Click the button to hide all p elements inside div.

Heading

This is a paragraph.

This is also a paragraph.