how to change a html of element from css code example Example: how to change css using javascript document.getElementById("myText").className = "anyNewClass"