importance: 5

---

# Tree menu

Create a tree that shows/hides node children on click:

[iframe border=1 src="solution"]

Requirements:

- Only one event handler (use delegation)
- A click outside the node title (on an empty space) should not do anything.
