Answers for "how to close and hide div on click of a button using javascript"

0

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>
Posted by: Guest on July-13-2021

Code answers related to "how to close and hide div on click of a button using javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language