With this our fruity CSS & jQuery accordion is complete! Conclusion
After this, we use e.preventDefault() to prevent the browser from navigating away from the page (after all we've just clicked a link and this is the normal behavior). This way, when you click on an open section of the accordion, it is contracted instead of just staying opened.