how to get tab index by tab name in jquery?
i need to remove a certain tab by this command:
$(tabContainer).tabs('remove', index);
the index must contain the correct order of the tab to be closed. the problem is, i'm generating the tabs programmatically so chances of having the wrong index is likely.