If I create a jQuery UI tab control. I add one tab. I add a second tab. How do I switch the position of the tab?
I want to be able to create a new tab at the start of the tab buttons, so I use
$('.tabs').tabs("add","tabContent.htm","New Tab")
but this creates the tab and appends it to the end of the exisiting tab buttons, but I need it to appear at the start. How can I switch their positions using jquery?
Unsure how to remove and re-add the button before the other ones.
1 Answer