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

🔥 Hot off the press! I just launched a new pocket guide. Learn how to build interactive web apps with vanilla JavaScript.

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

Get Daily Developer Tips