Hi,
I have a number of nested lists and some jQuery that shows hides them when a parent header is clicked.
IT works fine but the behaviour is slightly wrong. If a nested list is visible and the parent header is clicked i would like that nested list to be hidden. At the moment it does this but then shows the nested list directly after.
Please see this jsFiddle for working code: