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
$('.selectorname :first').attr('rel');
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.
EDIT The HTML as per request:
<ul>
<li class="selectorname" rel="something">Some Fun stuff..</li>
<li class="selectorname" rel="something">Some Fun stuff..</li>
<li class="selectorname" rel="something">Some Fun stuff..</li>
<li class="selectorname" rel="something">Some Fun stuff..</li>
<li class="selectorname" rel="something">Some Fun stuff..</li>
</ul>