views:

129

answers:

1

I have used Jquery UI Tabs, and given close option to the tabs. By default i am creating three tabs and its corresponding three divs. Now when i close a tab then the tab and its div are removed. I need to just hide the tab and div and when i click Add Tab i should just show the hidden tab and div. I am not sure how to show/hide the tab and div property.

Thanks in advance.

Jeevi

A: 

Not 100% sure on the specific code, but try something like this to hide-and-not-delete the tab:

$( ".selector" ).tabs({
    remove: function(event, ui) { $(this).hide(); return false; }
});
MDCore
Hi MDCore, Many thanks for your reply.I tried out this code but doesn't worked.First i am calling $( ".selector" ).tabs('remove', index);After this the tab is removed.Again if i call your function then the element itself is not present.
Jeevi