How to differentiate two links with the same content using jQuery?
<p>I have a page that contains two links with the same text "Add new item", but are targeting different URLs. </p>

<p>I created a javascript that uses jQuery library which references the link by its text. The code is: </p>

<pre><code>var anchorElement = $("a:contains('Add new item')");
</code></pre>

<p>This is fine when I want to reference the first link. But, how do I reference the second one, being that they have the same text? Thanks. </p>
