-3
I had to duplicate a code from a link whose id is the same (I can’t change it, I can’t actually change it). And I need to change the text of that link. I did it that way:
document.getElementById("send").innerHTML = "Enviar itens";
However, it only changes the text of the first link, and as stated, 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 had to duplicate because I don’t have access to "pure" html, I call the content through controls from my CMS platform.
Add an example of the code and explain why you needed to duplicate these elements.
– Leandro Angelo
I edited there @Leandroangelo
– Gustavo