How can I empty (remove all tabs) a jQuery UI Tabs?
EDIT: I'm not trying to remove the tab functionality, but to empty all tabs to add new ones.
I'm trying with:
for (var i = $('#content').tabs('length') - 1; i >= 0; i--) {
$('#content').tabs('remove', i);
}
But tabs('length') always returns 0, even if there are some tabs added to the control.
BTW, I'm initializing it empty
$('#content').tabs();
and adding tabs dynamically afterwards
$('#content').tabs( 'add' , '' , data[i].nombre);