var phone = document.getElementsByClassName('phone'); for(var a=0;a < phone.length;a++) { phone[a].innerHTML='+31 73 7200 703'; }