I just liked how you did it. But it seems to not be compatible on IE, did you know that? And how would you do it for this browser?
<details> doesn't work with either IE or Edge, Edge will soon support it though. As for IE, it is possible to polyfill the features in but generally, I wouldn't support IE.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.