I'm trying to set an a name to the first link with a specific class, but I'm kinda unsure as to how to apply something to just the first one?
So, I'm trying to find the first div with the sample class and then wrap the text within the div.title with the :
<div class="sample">
<div class="title"><a name="thisone">title</a></div>
<p>blah blah</p>
</div>
<div class="sample">
<div class="title">title</div>
<p>blah blah</p>
</div>
<div class="sample">
<div class="title">title</div>
<p>blah blah</p>
</div>