Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9241945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:28:32+00:00 2026-06-18T08:28:32+00:00

According to the upgrade guide for jquery-ui 1.9 tabs – http://jqueryui.com/upgrade-guide/1.9/#deprecated-add-and-remove-methods-and-events-use-refresh-method – when adding

  • 0

According to the upgrade guide for jquery-ui 1.9 tabs – http://jqueryui.com/upgrade-guide/1.9/#deprecated-add-and-remove-methods-and-events-use-refresh-method – when adding new tabs dynamically, you only have to do something like this:

HTML:

<div id='tabs'>
    <ul>
        <li><a href='#tab1'>#1</a></li>
    </ul>
    <div id='tab1'></div>
</div>
<button id='add-tab'>Add tab</button>

JavaScript:

$(document).ready(function() {
    $("div#tabs").tabs();

    $("button#add-tab").click(function() {

        var num_tabs = $("div#tabs ul li").length + 1;

        $("div#tabs ul").append(
            "<li><a href='#tab" + num_tabs + "'>#" + num_tabs + "</a></li>"
        );

        $("div#tabs").tabs("refresh");
    });                    
});

However when I try change between the newly created tabs, I get the following error in firebug:

jQuery UI Tabs: Mismatching fragment identifier.

If I understand correctly, this error means that the actual tab panel isn’t being created (and thus there’s a mismatch between the nav panel and the tab panel). But the upgrade guide makes no mention of creating a tab panel.

So I’m assuming that either I’m doing it wrong or that the upgrade guide is incomplete. Please clarify.

Interestingly enough, when removing tabs, the upgrade guide says you have to explicitly remove both the list item from the nav panel as well as the tab panel explicitly, so I’m wondering if the same applies to adding tabs.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:28:33+00:00Added an answer on June 18, 2026 at 8:28 am

    The guide must be incomplete, you need to add a tab panel

    $(document).ready(function() {
        $("div#tabs").tabs();
    
        $("button#add-tab").click(function() {
    
            var num_tabs = $("div#tabs ul li").length + 1;
    
            $("div#tabs ul").append(
                "<li><a href='#tab" + num_tabs + "'>#" + num_tabs + "</a></li>"
            );
    $("div#tabs").append(
                "<div id='tab" + num_tabs + "'>#" + num_tabs + "</div>"
            );
            $("div#tabs").tabs("refresh");
        });                    
    });
    

    example

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

According to docs at http://code.google.com/p/minify/wiki/UriRewriting $min_serveOptions['rewriteCssUris'] = false; I should be able to add
I'm tring to rebuild Orchard gallery according to instruction on: http://orchardgallery.codeplex.com/SourceControl/changeset/view/6a5476676f50#Readme.txt After getting all
According to: http://intendance.com/2011/03/31/enterprise-content-management-open-source-squiz-matrix/ They have stated: Most other open source content management systems options
Anyone know the answer? According to http://java.sun.com/javase/technologies/core/basic/intl/faq.jsp , it's 4.0 for 5. Has it
I'm building a patch using PCP, according to this tutorial: http://wix.sourceforge.net/manual-wix3/patch_building.htm I'v two MSI
That's because on gembundler.com, it says: Make sure to add Gemfile.lock to your repository.
According to https://github.com/mperham/dalli , we can configure multiple Memcache servers. But I'm not sure
According to my previous question integration of jsf2.0 and spring 3.1 and hibernate 4.1
According to the C++11 standard, is the following program well-formed and portable C++? int
According to this SO post: How to check the TEMPLATE_DEBUG flag in a django

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.