toggle view html code example
Example: toggle element javascript
document.querySelector("#test").hidden = true;
document.querySelector("#test").hidden = false;
document.querySelector("#test").hidden = true;
document.querySelector("#test").hidden = false;