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