What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-13 04:47:14
hide div on button click javascript
<style> function hideDiv(){ var closedDiv = document.getElementById("closableDiv"); closedDiv.style.display = "none"; } </style> <button id="closableDiv" onClick="hideDiv()"> </button> Add solution -
Html 2021-09-10 08:25:04
onclick hide div javascript
<style> function hideDiv(){ var closedDiv = document.getElementById("closableDiv"); closedDiv.style.display = "none"; } </style> <button id="closableDiv" onClick="hideDiv()"> </button> Add solution
Best helpers
Ranking is empty