So, w3schools website has this method of making dropdown work, which has feature that mine doesn’t. When you click outside window, opened dropdown closes.
So, I have few questions.
- If I don’t need that closing-without-clicking-on-button feature, is it ok to use my code? Are there any downsides to it?
- Aren’t there any other way of adding this feature to my code without using w3css overcoplicated 4-stories-high function?
Hover also doesn’t work at all on touchscreen devices, for obvious reasons. And even with a mouse, hover menus tend to be extremely annoying.