js change css div code example
Example 1: how to change css with js
document.querySelector('h1', container).style.backgroundColor = 'red';
Example 2: how to change css using javascript
document.getElementById("myText").className = "anyNewClass"
document.querySelector('h1', container).style.backgroundColor = 'red';
document.getElementById("myText").className = "anyNewClass"