2011-10-21 65 views

回答

1

獲取父li然後找到其.accordion

http://jsfiddle.net/QtvcB/8/

var selectedAccordion = $(this).closest("li").find(".accordion").slideDown(); 
$(".accordion").not(selectedAccordion).slideUp(); 
+0

完美。謝謝! – Josh