Closing/Removing a Tab from the viewport, dynamically
I have 4 tabs on my viewport. Each tab has multiple widgets with hyperlinks, upon clicking the hyperlinks it opens tabs.
If I click the hyperlink of a widget1 it will open a new tab (TabTemp) ( lets say in this case Tab 5).
I can use $('#id').tabs('remove', 5); for this particular Tab(TabTemp).
If I click the hyperlink of a widget2 it will open a new tab (TabTemp2) ( lets say in this case Tab 6).
I can use $('#id').tabs('remove', 6); for this particular Tab(TabTemp2).
What can I do in the scenario where the widget2's hyperlink is clicked first, in this case the new Tab will be Tab6 and I cannot use $('#id').tabs('remove',6); .
I would appreciate all the help I can get in this.