Waiting Answer March 23, 2024

How to Hide HTML Elements using Javascript?

Here is my HTML code,

<p id="para1">This is paragraph1</p>
<p id="para2>This is paragraph2</p>
<p id="para3>This is paragraph3</p>
<p id="para4>This is paragraph4</p>

How to hide id="para3" using Javascript?

2024-05-15 06:10:38

 <p id="para1">This is paragraph1</p>

    <p id="para2">This is paragraph2</p>

    <p id="para3">This is paragraph3</p>

    <p id="para4">This is paragraph4</p>


    var para = document.getElementById('para3').style.display = 'none';


Your Answer