Skip to main content Accessibility Feedback

Houdini gets accordion support

Houdini, my simple expand-and-collapse script, now supports accordion groups.

Add a data-group data attribute to every toggle in the accordion, and make sure they all have the same name. Houdini will sort out the rest.

Download Houdini on GitHub

🚀 I just relaunched my Vanilla JS Pocket Guides with new code examples and real projects to help tie everything you’ll learn together. Check it out.

Have any questions or comments about this post? Email me at or contact me on Twitter at @ChrisFerdinandi.

Get Daily Developer Tips