I needed to duplicate a code from a link, whose id is the same (I can not change, nor can I actually). I need to change the text of this link. I did this:
document.getElementById("send").innerHTML = "Enviar itens";
But it only changes the text of the first link, and as said, I need to change the text of the two links.
Link code:
<a id="send" href="rota" class="buy send">Send</a>
<a id="send" href="rota" class="buy send">Send</a>
I needed to duplicate because I do not have access to the "pure" html, I call the content through controls on my CMS platform.