Saturday, August 31, 2013

Previous Interview Question Next Interview Question
Home

How do you change the style/class on any element?

document.getElementById(“myText”).style.fontSize = “20″;
-or-
document.getElementById(“myText”).className = “anyclass”;

Previous Interview Question Next Interview Question
Home

0 comments :

Post a Comment