Re:If it goes somewhere, it’s a link. If it does something, ...
by runarberg on Wednesday October 12, 2022 @02:02AM
(#33173431)
This is precisely what <details> <summary> is for. No javascript required. It gives the correct semantics for assistive technology, correct interactions with the keyboard, focusability, etc. I recommend you use it over the old checkbox hacks or javascripts.
[ Parent
| on HN ]
There are no comments on this comment yet.