document.getelementbyid(id).style.display code example Example: display none js document.getElementById("myDIV").style.display = "none";