DEV Community

Discussion on: Responsive Accordion Design using HTML, CSS, and Javascript

Collapse
 
iankduffy profile image
Ian Duffy

Have you thought about using the details and summary html elements, so you don't need the JS.

Collapse
 
link2twenty profile image
Andrew Bone

You'd still need some JS (to ensure only one panel is open at a time) but this is definitely the way!