how to toggle a javascript methhosd 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;