jquery apply an attribute to only the first element?
<p>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?</p>

<p>So, I'm trying to find the first div with the sample class and then wrap the text within the div.title with the :</p>

<pre><code>&lt;div class="sample"&gt;
&lt;div class="title"&gt;&lt;a name="thisone"&gt;title&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;blah blah&lt;/p&gt;
&lt;/div&gt;

&lt;div class="sample"&gt;
&lt;div class="title"&gt;title&lt;/div&gt;
&lt;p&gt;blah blah&lt;/p&gt;
&lt;/div&gt;

&lt;div class="sample"&gt;
&lt;div class="title"&gt;title&lt;/div&gt;
&lt;p&gt;blah blah&lt;/p&gt;
&lt;/div&gt;
</code></pre>
