Get twitter bootstrap btn-group to operate like grouped navigation bar with drop down menus

Posted by Jeremy Child on Stack Overflow See other posts from Stack Overflow or by Jeremy Child
Published on 2012-06-17T03:10:51Z Indexed on 2012/06/17 3:16 UTC
Read the original article Hit count: 432

Filed under:
|
|

I have been trying to get Twitter Bootstrap btn-group with dropdown to work for multiple buttons that have a drop down menu.

Example:

  <div class="btn-group">
      <a href="#" class="btn">1</a>
      <a href="#" class="btn">2</a>
      <a href="#" class="btn">3</a>
      <a href="#" class="btn">4</a>
      <a href="#" class="btn">5</a>
  </div>

And also my attempt: http://jsfiddle.net/x2BGB/

This displays a button group. I would like some of the buttons in that group to have drop down menus.

An example of what I am trying to achieve is: enter image description here

Note: the grouped button "bar" should not have rounded cornes when a button is next to another button. (right side).

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about css