html change visibility on 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>