set visibility on click css 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>