I have a drop down list and some code to perform the operation to drop down the children and also change the list icon: Full set-up on this fiddle : http://jsfiddle.net/Gwbfd/3/
$(document).ready(function(){
$('.drawer').hide();
$('.handle').click(function(){
$(this).siblings().slideToggle('slow');
$(this).closest('ul').toggleClass('expanded');
$(this).closest('ul').toggleClass('collapsed');
});
});
The list is multi-tiered, and the problem I am having is there are multiple children of the second tier, and when I click one of the second tier children, it changes the icons of both children.
You need to style the
lielements directly, and that involves a few modifications to your code:and in the CSS:
Demo: http://jsfiddle.net/Gwbfd/8/