<p>Un text <span>puis</span> <span>un autre</span></p>
var obj = document.querySelectorAll("span")[0]; // cible le premier span
obj.nextElementSibling.style.color = "red"; // cible le premier noeud après
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.