I understand how to add a jquery-ui tab, and I understand how to select a tab by index number, but how can I both add a tab and then select it?
For example, in the following demo you can add a tab, but then you have to click on it for it to be displayed:
http://jqueryui.com/demos/tabs/#manipulation
I’m on jquery 1.4.2 and jquery-ui 1.8rc3.
After you have added the tab like the example just use the select method. You will have to know the index of the tab you just added. If you just added it to the end you can use the length method, if not then you already know the index of the tab because you defined it when you added it.