I've setup 3 sets of tabs & made them sortable. I've also connected them through the connectedLists option in the sortable. When I move a tab from one list to the other, I want move the tab + the target div to the new context. Currently when I click on the moved tab the target is still in the older space, which is expected. But the main problem is that, it still works as part of the previous tabset. I'd like to change this behavior.
<div id="tabs-1"><ul class="gadget-tabs">...</ul></div>
<div id="tabs-2"><ul class="gadget-tabs">...</ul></div>
<div id="tabs-3"><ul class="gadget-tabs">...</ul></div>
<script>
$('div[id^=tabs-]').tabs();
$('.gadget-tabs').sortable({
connectWith: ".gadget-tabs"
}).disableSelection();
</script>
Note that all the tabs are ajax loaded.