how to change visibility when click code example
Example: onclick change visibility
<button onclick="theCloak();"></button>
function theCloak() {
document.getElementById("myDiv").style.display="none";
}
// or...
<button onclick="this.style.display='none';"></button>