hide html div code example
Example 1: how to hide div in html
document.getElementById('elementName').hide();
Example 2: toggle element javascript
document.querySelector("#test").hidden = true;
document.querySelector("#test").hidden = false;
document.getElementById('elementName').hide();
document.querySelector("#test").hidden = true;
document.querySelector("#test").hidden = false;