Basically, I try to find and then start the effect, but I want to exclude the owner element. This is what I have at the moment:
$('li.main').click(function(){ $(this).parents('.content').find('li.main').not(this).removeClass('active'); $(this).parents('.content').find('li.subs').not(this).slideUp(); $(this).parent().toggleClass('active'); $(this).parent().next('li.subs').slideToggle(); });
Does not work. Does anyone know how to do this?
Gstar source share