Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hold my beer: that’s something you can do with the input checkbox trick.

Here’s an example: https://codepen.io/daviddarnes/pen/abVaGG



You might also be able to use a <details> element for the drop-down state.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: