jQuery get the text/html value of the first element with class xxxxx
<p>Ok, I have a series of Unordered Lists on a page I am working on. The list items of each unordered list have a class name for use with some click events that I have done. Now I am trying to find the :first/first() element of a given class name. Problem is, :first/first() return undefined. I know first() you can't specify a selector other than the element type (yet), and when I try </p>

<pre><code>$('.selectorname :first').attr('rel');
</code></pre>

<p>to get the rel value of that first one i still get undefined. So I'm a bit confused how to tackle this as its not working the way I had hoped.</p>

<p><em><strong>EDIT</em></strong>
The HTML as per request:</p>

<pre><code>&lt;ul&gt;
   &lt;li class="selectorname" rel="something"&gt;Some Fun stuff..&lt;/li&gt;
   &lt;li class="selectorname" rel="something"&gt;Some Fun stuff..&lt;/li&gt;
   &lt;li class="selectorname" rel="something"&gt;Some Fun stuff..&lt;/li&gt;
   &lt;li class="selectorname" rel="something"&gt;Some Fun stuff..&lt;/li&gt;
   &lt;li class="selectorname" rel="something"&gt;Some Fun stuff..&lt;/li&gt;
&lt;/ul&gt;
</code></pre>
