js append element with class 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");
}