ClassName Chnage of Div

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