Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Foundation Dropdown

Foundation Dropdown

Foundation Dropdown allows users to select a value from a predefined drop-down list:

Example

<

a

href=

"#"

data-dropdown=

"id01"

class=

"button dropdown"

Dropdown Button

<

/a

<

ul

id=

"id01"

data-dropdown-content class=

"f-dropdown"

 

<

li

<

a

href=

"#"

Link 1

<

/a

<

/li

<

li

<

a

href=

"#"

Link 2

<

/a

<

/li

<

li

<

a

href=

"#"

Link 3

<

/a

<

/li

<

/ul

<

script

$(document).ready(function() {

    $(document).foundation();

})

<

/script

Try it »

Example Parsing

.dropdown The class adds a downward arrow icon to the button.

Use the button or link's data-dropdown="id" attribute to open the dropdown menu.

id The value must match the content of the dropdown menu (id01).

in

,