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?
js hide html elements
<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>
<script>
var para = document.getElementById('para3').style.display = 'none';
</script>
Test your knowledge with interactive quizzes.
Prepare for interviews with curated question sets.
Ask your coding-related doubts and get answers.
Earn certifications to enhance your resume.
Hands-on projects to improve your skills.
Test your knowledge with interactive quizzes.
Prepare for interviews with curated question sets.
Add your technical blogs and read technical topics.
Earn certifications to enhance your resume.
Hands-on projects to improve your skills.