Chnage Classname of Div

document.getElementById("MyElement").className = "MyClass";
Talhah Patelia