twitter/bootstrap — Issue #1799: BT2.0 - Tabs events Show and Shown
Author: jarufa
Created: 2012-02-07 14:31:55+00:00
State: open

Hi I'm trying to capture the events with the example provided but I can't.

The JS:

$('#tab1).on('shown', function (e) {
alert(e.target); // activated tab
alert(e.relatedTarget); // previous tab
})

I'm pasting my code:

Section 1

Section 2

Section 3

I'm in Section 1.

Howdy, I'm in Section 2.

Howdy, I'm in Section 3.