You are adding handlers to all
li.DropDown regardless of where it is in the hierarchy, so several handlers can be activated by the one click. Also, the
active class is being removed from all list items and all
ul.Tier2. Instead, target your handler only at the actual link (instead of the whole list item) and process just the embedded
ul's relative to that link, as is done in
this example.