It is easy to solve. The element wrapping your code is whether, but it should be a div. This works for me:
<div class="dropdown"> <a data-target="#" data-toggle="dropdown" class="dropdown-toggle" href="#">Dropdown menu here... <b class="caret"></b> </a> <ul class="dropdown-menu"> <li><a href="/app/1">Item A</a></li> <li><a href="/app/2">Item B</a></li> <li><a href="/app/3">Item C</a></li> </ul> </div>

If you want it to look like a button, just add “btn” to the list of classes, for example:
<a data-target="#" data-toggle="dropdown" class="dropdown-toggle btn" href="#">
My title is as follows:
<link rel='stylesheet' type='text/css' href='css/bootstrap.min.css'> <link rel='stylesheet' type='text/css' href='css/bootstrap-responsive.min.css'> <script src='js/jquery-2.0.0.min.js' type='text/javascript'> <script src='js/bootstrap.min.js' type='text/javascript'>
You can opt out of responsive css if you are not doing anything for mobile devices.
Graham
source share