jQuery UI Widgets Forums Navigation Tabs Delete, Add, Then Select does not work

This topic contains 1 reply, has 2 voices, and was last updated by  Hristo 6 years, 11 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author

  • klh717

    I have a case where I’m dynamically loading tabs on a page. The issue I have is trying to clear the previous tabs to recreate the new ones. When I do this, the select method does not work. Please see the following Fiddle, click the button and you can see that the last tab is selected, not the first one. Is there a work around? I originally tried to destroy the tab and make a new one but that doesn’t seem to work the same way as other objects.

    This appears to only be a problem if an item is deleted prior to the add.


    Thank you,



    Hello Kris,

    The mentioned scenario happens very fast and I would like to suggest you using setTimeout to select the first tab.

    Best Regards,
    Hristo Hristov

    jQWidgets team

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.