• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 316
  • Last Modified:

Tabs in bootstrap

In twitter bootstrap 3 you can find out what tab you are on by the following code

   $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
        console.log(e.target.hash);
    })

Open in new window


The question is is it possible to change data-toggle="tab" to another name.  I am just thinking of having multiple tabs in a page.
0
stargateatlantis
Asked:
stargateatlantis
1 Solution
 
leakim971PluritechnicianCommented:
use a class selector : http://api.jquery.com/class-selector/
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now