Solved

Tabs in bootstrap

Posted on 2013-11-25
2
303 Views
Last Modified: 2013-11-26
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
Comment
Question by:stargateatlantis
2 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 39676317
use a class selector : http://api.jquery.com/class-selector/
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question