twitter/bootstrap — Issue #732: Issue #524 Solution Does Not Seem to Work
Author: poogah
Created: 2011-11-30 19:33:07+00:00
State: open

I will admit that I am new to jQuery/Bootstrap development, I am I am trying to dynamically generate a tab (if doesn't exist) with bootstrap-tabs and then switch to that tab after it is created. I'm doing the following:

```javascript
$('#launchTab').click( function() {
if (!$('#myTab').length) {
$('.tabs').append('
My Tab
');
$('.tabs').tabs();
}

$('#myTab').click();
})
```
The tab displays nicely, and if I click the tab I can navigate to the proper pane -- I can find no programmatic solution for switching to the just created tab. I even tried the solution presented in issue #524 with staticly defined tabs to no avail. Am I missing something or is there a problem here?