an "active" link is one that has received a click. so you can do:
$('a').click(function() { $(this).doSomethingHere // 'this' is a reference to the element that triggered the click }); does that help? On Thu, Aug 20, 2009 at 3:30 PM, Dennis Madsen <den...@demaweb.dk> wrote: > > I've this CSS to style my links in my menu: > .menu a:link, .menu a:active, .menu a:visited{ > color: #ffffff; > text-decoration: none; > } > > I would like to find the a-tag (<a>) which is active. I've tried > something like: $('.menu a:active'). > > How can I find that element? > -- I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success.