change text of <a> element in javascript array
<p>I have a javascript array with contains a bunch of anchor elements like this:</p>

<pre class="lang-js prettyprint-override"><code>["&lt;a href="#" id="id1"&gt;First anchor&lt;a&gt;", "&lt;a href="#" id="id2"&gt;Second anchor&lt;a&gt;", "&lt;a href="#" id="id3"&gt;Third anchor&lt;a&gt;"]
</code></pre>

<p>I would like to change just the text in the last anchor element (Third anchor) while keeping the attributes of the anchor element itself unchanged (meaning I want to keep my id and href attributes intact). How would I do this and returned the changed array?</p>
