Show/hide 'div' using JavaScript
HTML
<div id="foo">a</div>
<div >b<div>
CSS
div {
height: 100px;
}
JavaScript
document.getElementById("foo").style.display = 'none';
<div id="foo">a</div>
<div >b<div>
div {
height: 100px;
}
document.getElementById("foo").style.display = 'none';