The following two lines appears in different locations of a page:
Line 1: <span class="specLink"><a title="Part A" href="/page1.aspx">Part A</a></span>
Line 2: <span class="specLink"><a title="Part A" href="/page1.aspx">Part A</a></span>
What I am doing currently is taking for each specLink
class anchor and adding it to another DIV:
<div class="addSpecialties">
//add those links in this DIV
</div>
So with the Javascript I have right now the out comes out line this:
<div class="addSpecialties">
<a title="Part A" href="/page1.aspx">Part A</a>
<a title="Part A" href="/page1.aspx">Part A</a>
</div>
However, What I would like to display is (just one of them because they are repetetive):
<div class="addSpecialties">
<a title="Part A" href="/page1.aspx">Part A</a>
</div>
How can I modify my code so it only takes one occurrence of .specLink a
.