Change of tab by its id doesn't work
See original GitHub issueThe following code doesn’t work:
$('#2').tab('show');
...
<div class="tab-pane" id="2">
...
Issue Analytics
- State:
- Created 12 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Can't access a tab using id in the URL outside of the page
It works ok when i navigate through tabs inside the projects page, and if i hover on the tab "Orange" i can see...
Read more >How do I get the data of the current tab? — DataTables forums
The problem is that using .show() and .hide() to show/hide rows only changes the DOM display. Datatables doesn't know about these changes.
Read more >tabs.update() - Mozilla - MDN Web Docs
To use this function, pass the ID of the tab to update, and an updateProperties object containing the properties you want to update....
Read more >How to link to a specific tab through a #id link in the url
There are 2 things you need to make sure of: 1. Disable the tab continuity, otherwise, tab continuity will override whatever you do...
Read more >Problem With Linking to tab with url | WordPress.org
All the other tabs doesn't work when trying to navigate directly from url to a ... tabs on the tab panel, it doesn't...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The problem with the ids has been resolved—in Components, it’s now
#tab1
,#tab2
, etc.Your second issue is because you are targeting the tab’s content instead of the tab itself, which is what the docs show to do. I’ve updated your fiddle to show this: http://jsfiddle.net/BM973/22/. Note the
.tab2
on the second tab’s anchor.I’m unsure what your third issue is though. I’m going to close this out though, so please open a new issue if that still needs addressing.
The following issues I see with regards to the tabs:
.tab('show')
doesn’t work for me both in Firefox 10 and latest Сhrome - http://jsfiddle.net/and7ey/BM973/9/;