JavaScript Div ID Class hinzufügen

var d = document.getElementById("div1");
d.className += " otherclass";
Shadow