⟩ Tell me how Do You Change The Style/Class On Any Element From JavaScript?
Following JavaScript will modify the style/class of an HTML element.
document.getElementById(“input”).style.fontSize = “10”;
-or-
document.getElementById(“button”).className = “classname”;