chek-dropdown
v2.0.0
Published
DROPDOWN MODULE 1. dropdown function will have an dom anchor parameter which will iterate over each child (e.g. ul with lis or a div with a bunch of a tags), as well as a button parameter 2. the function will load and will iterate over each child to give
Downloads
3
Readme
dropdown
DROPDOWN MODULE
- dropdown function will have an dom anchor parameter which will iterate over each child (e.g. ul with lis or a div with a bunch of a tags), as well as a button parameter
- the function will load and will iterate over each child to give it a 'hidden' class
- we will add a class of 'visible' to each child when the user clicks on the main menu button
receive anchor and button, stow anchor children in an array, add class of 'hidden' to each child