Activate tabs with jQuery

biqanvoi

New Member
I have a system to create, delete and rename tabs using jQuery. I am trying to set it up so that when a new tab is created it activates that tab but nothing seems to be working. I have tried the Tab API on the Twitter Bootstrap page but it does not seem to work.jsFiddle: http://jsfiddle.net/BenedictLewis/eYePA/What I have tried:\[code\]$('#myTab a[href="http://stackoverflow.com/questions/15892459/#profile"]').tab('show'); // Select tab by name$('#myTab a:first').tab('show'); // Select first tab$('#myTab a:last').tab('show'); // Select last tab$('#myTab li:eq(2) a').tab('show'); // Select third tab (0-indexed)\[/code\]
 
Top