set a css display in javascript code example Example: display none js document.getElementById("myDIV").style.display = "none";