i have a doom tree like this:
ul #navigation
li .active
ul
li.active_li
li
li
/ul
li
ul
li.active_li
li
li
/ul
/ul
i would like to find the li with a class of active_li inside the ul belonging to the li that has a class of active. 🙂
as we can see there are 2 li with a class of active_li. i want only the first one
something like: $('#navigation').find('li.active').find('li.active)li').doSomething();
this selector doesn’t seem to work
any ideas?
Try this selector: