htmlkod=''; htmlkod=htmlkod.toString(); var elements = document.getElementsByClassName('tipNRot55'); for(var i = 0; i < elements.length; i++) { elements[i].innerHTML=htmlkod; }