One Accordion item always open

Happy Friday everyone,

what do I need to add to my custom code to make sure one accordion item always remains open.

Scenario needed:
First item is open on page load, if I click the second item the first one closes and second one opens up. If I click the second one again, it remains open and does not collapse.

Here’s my share link:

And here’s the live link:

Thanks a lot for your help.


1 Like