ragul_dropdown
v1.0.4
Published
My first npm package
Downloads
6
Readme
What is this?
A dropdown generator
##Installation
Run npm i ragul_rng
Use:
toggleDropdown('selector')
selector class/id
With the toggleDropdown function you pass a dropdown element(s) class and it will start behave like a drop down upon clicking, condition 1 : the class u pass may be anyname (eg .dropdown), but inside it the content which should be visible on clicking the element with specified selector you sent . remember to set .content{display :none} and .visible{display:block}