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 8513745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:39:57+00:00 2026-06-11T04:39:57+00:00

I have a tab list (ul using jquery-ui) that I have stretch width-wise across

  • 0

Picture of what I want, and that SORT OF works right now, but not fully

I have a tab list (ul using jquery-ui) that I have stretch width-wise across the entirety of the page. In the top-right corner of the themed/tab area (not outside of the tabbed area, but INSIDE of it) I want another set of navigation that I want themed differently.

So I made another ul and nested it in the last li in my parent ul. And then apply css to override the jquery-ui themes that get applied to the rest of the tabs. This works, except for two things:
1.) I want the gap between this nested list, and the last real tab in my tabstrip to shrink as the browser changes size, and if it needs to wrap to the bottom (like the rest of the tabs do).
2.) The first li in my nested ul is being treated like it’s still a tab, and so when I click on it, rather than it be a link to another page (“/Store/Admin/”) that I specify in the href property, jquery-ui shoves in “#ui-tabs-1” and tries to post back to an anchor on the current page that doesn’t exist. I don’t know where “#ui-tabs-1” came from because that’s not even my naming convention for my parent ul/tab-list??? I don’t any of the nested list to be treated as still part of the tab list.

If I need to un-nest the other ul and put it somewhere else on the page, that is fine with me… BUT, I still want it to be sitting in the top-right section of my tablist and I want it to wrap with the tabs, so that’s why I shoved it in the last/right-most li of my parent ul.

Is there a way to tell jquery “don’t treat this li as a tab”?

The code on my page looks something like:

<article>
    <div id="tabs">
        <nav>
            <ul>
                <li><a href="#Parts" onclick="getTab('Parts');">Parts</a></li>
                <li><a href="#Categories" onclick="getTab('Categories');">Categories</a></li>
                <li><a href="#Links" onclick="getTab('Links');">Links</a></li>
                <li class="untabbed">
                    <ul>
                        <li>[ <a href="/Store/Admin">Admin</a> |</li>
                        <li><a href="/Store/Order">Order</a> |</li>
                        <li><a href="/Account/LogOff">Log off</a> ]</li>
                    </ul>
                </li>
            </ul>
        </nav>
        <div id="Parts"></div>
        <div id="Categories"></div>
        <div id="Links"></div>
    </div>

</article>
    ...
<script type="text/javascript">
    $tabs = $('#tabs').tabs();
    $('#tabs').tabs('select', 'Categories');
    getTab('Categories');
    function getTab(id) {
        var url = '/Store/Home/GetTab/' + id;
        var targetDiv = '#' + id;
        $.get(url, null, function (result) {
            $(targetDiv).html(result);
        });
    }
    $.address.change(function (event) {
        $('#tabs').tabs('select', window.location.hash)
    });
    $('#tabs').bind('tabsselect', function (event, ui) {
        window.location.hash = ui.tab.hash;
    });
</script>
  • 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-11T04:39:59+00:00Added an answer on June 11, 2026 at 4:39 am

    You could use the disabled option to select tabs to exclude.

    http://jqueryui.com/demos/tabs/

    An array containing the position of the tabs (zero-based index) that
    should be disabled on initialization.

    For example:

    $( "#tabs" ).tabs({ disabled: [1, 2] });
    

    UPDATE

    After our comments I’ve done a JSFiddle of a solution that takes the sub list out of the tabbed list.

    http://jsfiddle.net/spacebeers/G6WhC/17/

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

Sidebar

Related Questions

Using jquery I have a clicking tab mechanism that are nothing but anchor tags
I have a UL list in a ASPX page: <ul id=tabs> <li id=tab1><a href=ztab1.htm>Tab
I have a tab navigation page in my rails app which is shared across
I have a jQuery UI tab control in my web page, and i want
So I have this site that dynamically posts content using jquery and php. I
I have a jQuery dialog that holds multiple tabs, each tab contains a form,
I have built two control containers on a page, one is using jquery-ui tabs
I have a tab setup as an Activity extension using API8 max. In this
I'm using jquery-1.4.2.min.js and jquery-ui-1.8.1.custom.min.js. According to Firebug, both minimized scripts have been loaded.
I have a jQuery tab section - and I want to animate the panels

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.