Frage

There's a similar thread about this, but it's in AngularJS. How do I tell which tab in the Bootstrap 3 Tabs as the "active" one in jQuery only?

thanks.

War es hilfreich?

Lösung

You can grab the active tab by doing:

$('.nav').find('li.active')

You can easily replace the .nav with the selector that will identify the UL tag surrounding your tabs.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top