javascript hide and unhide class element code example Example: how to hide div in html document.getElementById('elementName').hide();