[jQuery] jQuery Selectors

[jQuery] jQuery Selectors


i am actually doing a accordion/sliding menu. here, i want to slide up
sibling li > ul that has been open (or displayed). can i simplify this
further?
$(this).parent("li").siblings("li:has(ul)").children("ul").slideUp
("fast");
i also noticed that i cannot skip the children() part and do something
like
$(this).parent("li").siblings("li:has(ul) ul").slideUp("fast");
why is siblings("li:has(ul) ul") different from siblings("li:has
(ul)").children("ul")?