I have a site that uses for example html element id="some_id" several times  and I want to change all those elements with jquery, but when I run the jquery code: $("#some_id").attr("href", "new url"); Or for example $("#some_id").text("new text") I only change the first element/object/link.
Like this:
<a id="username">username1</a>
<a id="username">username1</a>
Jquery that edit the first element:
$("#username").text("username2"); 
How do I edit both elements with jquery.
 
     
     
     
    