Here's my base:
And I want it to be three levels instead of just two. I've got it working here:
But it means that I've got to have one instance per category. Is there a cleaner way of doing this?
Here's my base:
And I want it to be three levels instead of just two. I've got it working here:
But it means that I've got to have one instance per category. Is there a cleaner way of doing this?
Try giving the accordion a class and slightly modifying the code to make it hide siblings based on clicked element.
http://jsfiddle.net/RnwYQ/19/