Using javascript, I want to change the style of class .s into
.s
.s { display: block; }
Why this cannot work:
var sCls = document.getElementsByClassName('s'); for(var i in sCls) { sCls[i].style.display='block'; }
this may work!