I've been working on implementing a system that allows me to create, delete, and rename tabs with jQuery. However, I'm facing an issue where the newly created tab is not being activated as intended. I have attempted to use the Tab API provided by Twitter Bootstrap, but unfortunately, it hasn't resolved the issue.
You can find my jsFiddle here: http://jsfiddle.net/BenedictLewis/eYePA/
Here's what I've tried so far:
$('#myTab a[href="#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)