javascript get element by id and change css code example Example: add css in javascript document.getElementById("demo").style.display = "none";