There are many examples of dropdown menus written with JS which of course is a great solution. However, as for me, when we have an opportunity to avoid using extra JS code on our beautiful sites, we have to use this opportunity for several reasons:
- extra JS could overload the DOM
- JS could overload users RAM
- JS affects overall perfomance
So if we could create a dropdown menu without help of JS why don’t we try it?