Solved

Tabs in bootstrap

Posted on 2013-11-25
2
302 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Why does my button disappear? 3 28
Angular.js example vocabulary extensions 5 31
Footer at the bottom of the page not centered 5 28
Alignment is not working correctly. 8 32
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
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…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

914 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now