Close <details> when another opens

I am trying to make so that when a user opens a <details> it will close all other open <details> views. Not sure how to do it. Any suggestions

Jsfiddle

Answers 1

Related Articles