thanks for having a look at this, basically I'm quite new to jQuery and what im trying to do is when the a#category-all link is clicked I want only the child links with the class "selected" to trigger a click. At the moment every a element on that level is getting clicked. Thanks for your help.
$('li a#category-all').click(function()
{
if($(this).parent().siblings().find('a').hasClass('selected'))
{
$(this).parent().siblings().find('a').trigger('click');
}
});