[jQuery] retrieving DOM element with specific CSS class

[jQuery] retrieving DOM element with specific CSS class


Hello guys, I'm trying to make some changes to the coda slider effect
on jqueryfordesigners.com
Basically what I want is changing the buttons every time I move from a
panel to an other one.
I have the code below:
<div id="slider">
<ul class="navigation">
<li><a href="#1" id="first">FIRST</a></li>
<li><a href="#2" id="second">SECOND</a></li>
<li><a href="#3" id="third">THIRD</a></li>
</ul>
...
</div>
and the link to the current panel have the class 'selected'
Here the question: how can I retrieve the id of the link with the
class 'selected'?
I guess it should be something like: $('#slider .navigation').find
('a').XXX('selected').id but I don't know how to put in place of XXX.
Thanks
Sig