Add the data-dropdown attribute to any HTML element, using the id of the dropdown as the value. That’s all you have to do–you don’t even have to initialize it! The plugin also works on dynamically generated triggers.

<a href="#" data-dropdown="#dropdown-1">dropdown</a>

3. API

You probably won’t need these, but they’re there just in case:

attach – attach a dropdown to the selected trigger element(s); pass in the #dropdown-id as value

detach – detach a dropdown from the selected trigger element(s)

enable – enables the dropdown and removes the dropdown-disabled class from the trigger

disable – disables the dropdown and adds the dropdown-disabled class to the trigger