Auto-close similar childs
I have this code.
Basically a collapsible box.
I wanted to make it so, whenever a different one gets opened, collapses the last one, but haven't been able to wrap my head around it. Tried some if statements, but can't quite find the logic.
Is there a way to make that?
If anyone is curious, it's right here: https://cozynova.online/windcutter/#New-Player
Basically a collapsible box.
I wanted to make it so, whenever a different one gets opened, collapses the last one, but haven't been able to wrap my head around it. Tried some if statements, but can't quite find the logic.
Is there a way to make that?
If anyone is curious, it's right here: https://cozynova.online/windcutter/#New-Player

