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

Bootstrap Dropdown

Bootstrap Dropdown

Description

With the Dropdown JavaScript plugin, you can create a Dropdown menu on any object in Bootstrap. InNavigation bar、Navigation (tabs and pills)full support for creating dropdown menus is provided.

What is required when using this plugin

You must include the jquery.js and bootstrap-dropdown.js files. Both files are located in the twitter-bootstrap-v2/docs/assets/js folder. You can then invoke the dropdown via JavaScript. The following example demonstrates how to do this.

Example

Example

    

Dropdown Example

View the example online

In the example above, it demonstrates how to create, through the JavaScript plugin, onNavigation bara dropdown menu.

You can also apply the Dropdown JavaScript plugin on **Navigation (tabs and pills)**. The following example demonstrates how to do this.

Example

Example

View the example online

Click here to download all the HTML, CSS, JS, and image files used in this tutorial.