twitter/bootstrap — Issue #1000: Tabs don't work if data-toggle attribute is missing (or wrong documentation)
Author: KidkArolis
Created: 2012-01-14 15:11:30+00:00
State: open

This is regarding branch 2.0-wip

I thought manually calling $(".tabs").tab() shouldn't require data-toggle attributes on the `````` elements.

It seems to be the case due to the following line in tab.js only handling clicks on those links that have the attribute. However, shouldn't manual tab() call put those attributes there / bind the tab clicks? Is this by design? In that case the documentation is wrong, because the example in #tabs section is missing those data-attributes.

```
$('body').on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) {
...
```