twitter-bootstrap Dropdowns


For more information, visit the official Bootstrap documentation located at, where the basic HTML usage example is derived from.

Basic HTML usage

A Bootstrap dropdown is a Bootstrap component that allows an HTML element trigger the display of a sub-menu dropdown upon the element being clicked.

Here is a basic HTML usage example:

<div class="dropdown">
  <button id="dLabel" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
    Dropdown trigger
    <span class="caret"></span>
  <ul class="dropdown-menu" aria-labelledby="dLabel">

Dropdown sub-menu items can be specified by inserting li elemented within the ul element with the .dropdown-menu class.