javascrit on click hide and display another div code example Example: how to hide div in html document.getElementById('elementName').hide();