1.0.1 • Published 3 years ago
dropdown-menuu v1.0.1
This is a drop-down menu function module that uses javascript.
How to use =>
Uses one function called dropDownMenu(). That takes 2 arguments, first one being the name of the button element. The second being the name of the menu element.
Example =>
(html)
(javascript) dropDownMenu('btnElement', 'menuElement');
Notes =>
- Funtion only selects elements with id=''.
- Automatically hides menu element so you don't need to hide it in css or add additional js code.
- Nothing important, just added because 3 looks better than 2.