javascript append class to div code example
Example: js append class
function myFunction() {
var element = document.getElementById("myDIV");
element.classList.add("mystyle");
}
function myFunction() {
var element = document.getElementById("myDIV");
element.classList.add("mystyle");
}