Uhh, did you check out how that actually functions? It looks like garbage.
Re:Gov.uk drops jQuery from their front end
by ThunderSizzle on Friday May 20, 2022 @11:04AM
(#31448444)
Agreed, this example looks like total shit.
https://code-boxx.com/expand-collapse-div-css-only/