JavaScript – Hide Paragraph
To hide a paragraph using JavaScript, get the reference to the paragraph element, and assign value of "none"
to the element.style.display
property.
Example
Conclusion
In this JavaScript Tutorial, we learned how to hide a paragraph using JavaScript.