[Tabs component] How to remove a tab but not its div component

[Tabs component] How to remove a tab but not its div component

Hi all, and thanks for paying attention !

I have a tab component with few tabs leading to the same DIV :
  1. $('#ecocalculateur_tab_container').tabs('add', '#ecocalculateur_input_tab', '');
  2. $('#ecocalculateur_tab_container').tabs('add', '#ecocalculateur_input_tab', '');
  3. $('#ecocalculateur_tab_container').tabs('add', '#ecocalculateur_global_tab', '');
So tab 1 and 2 share the same content.
Then i need to remove the second tab :
  1. $("#ecocalculateur_tab_container").tabs('remove', 1);
But doing this also delete the content in the DIV '#ecocalculateur_input_tab'. (So I have issues while loading the first tab, since the content does not exist anymore.)
So, I'd like to know if there is a way to delete only the tab without te DIV content.

Thanks for reading !
Adrien