At the end of the last chapter, you ended up with a respectable accordion, which was the first major bit of jQuery you’d embarked on. You might not have realized it, but the code you wrote could be tidied up. In this chapter, you’ll round out your knowledge of events by looking at the more advanced features, including:
Event delegation
Event propagation
Preventing default behavior
Creating your own events
Once you’ve covered these features, you’ll take another look at your accordion ...