js add new classname to end 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");
}