I have a modal and in that modal are tabs. The modal is initially hidden, and I have a list of buttons.
Each button is assigned to a tab in the modal. When I click a button, I want the modal to pop up, and then switch to the tab assigned to the button.
Unfortunately, there is no “out of the box” solution to this. It takes some jQuery/CSS manipulation.
Essentially, you need to:
For the Twitter Bootstrap codebase, you will need to add/remove classes from both the tab link list, and the tab-panes:
I recently added this to a project, so went ahead and wrote a little mockup.
http://coryprice.com/e/twitter-bootstrap/modal-with-tabs/