Strange behaviour with jquery tab

Strange behaviour with jquery tab

In my application (running on IE8), Im using jquery ui (1.9.1) along with jquery ui closeable plugin. I have got a tab structure in one of my screens.Whenever I try to close the tab by clicking the close button link, everything works perfectly fine; tab closes and next tab get selected. But in case after perfroming some action on the tab and that action need to close the tab dynamically, I invoke the below function

  1. function removeSelectedTab() {
  2. var existTabs = $('#additionalTabs').tabs("length");
  3. var selIndex = $("#additionalTabs").tabs("option", "selected");
  4. $("#additionalTabs").tabs("remove", selIndex);
  5. if (existTabs == 1) {
  6. window.close();
  7. }
  8. }
After this, it closes the current tab, but I'm not able to select any content other than radio button and drop downs in the next tab. Even static text is not selectable. Browser version is IE 8.

Have any one experienced same problem with jquery ui and closeable plugin. Why is the text selection getting disabled. Solutions would be greatly appreciated.