Tell me how Do You Change The Style/Class On Any Element From JavaScript?

Submitted by: Muhammad
Following JavaScript will modify the style/class of an HTML element.

document.getElementById(“input”).style.fontSize = “10”;
-or-
document.getElementById(“button”).className = “classname”;
Submitted by: Muhammad

Read Online Website Developer Job Interview Questions And Answers