• A
  • B
  • C" />
    • A
    • B
    • C" />
      • A
      • B
      • C"/>
        DEVHIDE
        • Home (current)
        • About
        • Contact
        • Cookie
        • Home (current)
        • About
        • Contact
        • Cookie
        • Disclaimer
        • Privacy
        • TOS
        Login Or Sign up

        jQuery UI Tabs Widget and Nested list

        2.2k Views Asked by ai2517 At 29 October 2013 at 19:03 2025-11-20T19:59:27.329000

        I have following nested tabs that I want to show in

        <div id="1">
        <ul>
            <li><a href="#a">A</a></li>
            <li><a href="#aa1c">B</a></li>
            <li><a href="#aa2c">C</a></li>
        </ul>
        <div id="a">
        
            <div id="aa1h">
                Sub Tab AA1 Header
            </div>
            <div id="aa1c">
                Sub Tab AA1 Content 
            </div>        
            <div id="aa2h">
                Sub Tab AA2 Header
            </div>
            <div id="aa2c">
                Sub Tab AA2 Content 
            </div>       
        
         </div>
        </div>
        
        
        $('#1').tabs();
        

        Now I want to display three tabs using jQuery tabs or YUI tabview as following:

        First tab displays #a (the whole thing) Second tab displays #aa1c (only content for aa1) Third tab displays #aa2c (only content for aa2)

        I am having some problems with this method, any help is appreciated.

        http://jsfiddle.net/RQcwE/1/

        See above example for my problem.

        UPDATE:

        With help from Hanlet Escaño I have achieved what I wanted with couple of blank divs and some jQuery Code..

        http://jsfiddle.net/RQcwE/3/

        yui jquery-ui-tabs jquery-1.10
        Original Q&A
        1

        There are 1 best solutions below

        1
        Hanlet Escaño Hanlet Escaño On 29 October 2013 at 19:17 BEST ANSWER

        This is an example with sub-tabs that might work for you:

        <div id="1">
            <ul>
                <li><a href="#a">A</a></li>
                <li><a href="#b">B</a></li>
                <li><a href="#c">C</a></li>
            </ul>
            <div id="a">
                <ul>
                    <li><a href="#aa1">Sub A 1</a></li>
                    <li><a href="#aa2">Sub A 2</a></li>
                </ul>
                <div id="aa1">
                    Sub Tab A content 1
                </div>
                <div id="aa2">
                    Sub Tab A content 2
                </div>
             </div>
            <div id="b">
                <ul>
                    <li><a href="#bb1">Sub B 1</a></li>
                    <li><a href="#bb2">Sub B 2</a></li>
                </ul>
                <div id="bb1">
                    Sub Tab B content 1
                </div>
                <div id="bb2">
                    Sub Tab B content 2
                </div>
             </div>
            <div id="c">
                <ul>
                    <li><a href="#cc1">Sub C 1</a></li>
                    <li><a href="#cc2">Sub C 2</a></li>
                </ul>
                <div id="cc1">
                    Sub Tab C content 1
                </div>
                <div id="cc2">
                    Sub Tab C content 2
                </div>
             </div>
        </div>
        

        you just build them like this:

        $("#1" ).tabs();
        $("#a" ).tabs();
        $("#b" ).tabs();
        $("#c" ).tabs();
        

        JSFiddle: http://jsfiddle.net/p84kC/

        Related Questions in YUI

        • How can I create a AlloyUI DiagramBuilder from the JSON returned by DiagramBuilder.toJSON()?
        • YUI Library not working on SSL (secure server)
        • YUI3 - Update CSS class based on XY position
        • Liferay 6.2 Alloy UI Dropdown
        • YUI 3 how to get / save uploaded files with uploadURL
        • YUI3 Drag Drop Disable/Enable
        • ReactJS firing events with YUI
        • How to override the onclick for SearchForm to specific action Sugarcrm
        • YUI thumb slider does not accept variables and expressions
        • How do I activate a YUI Datepicker only by a seperate Icon, not by the referenced input field?
        • How do I trigger a onclick javascript of a link with AUI?
        • YUI uploader error handling
        • AlloyUI : Customize pagination component
        • Android, YUI, Moodle
        • YUI datatable column count

        Related Questions in JQUERY-UI-TABS

        • Having trouble focusing on the TAB that I was currently working on
        • jQuery tabs enable horizontal scroll
        • Tabs JQuery UI: not show graphic elements in inactive tab
        • Multiple jQuery UI Tabs on Page: Close all other tabs when another is opened
        • jQuery tabs: How to avoid display of tabs while loading?
        • JQUERY UI TABS - PreventDefault jumping
        • oscMax jquery nested tabs issue
        • How to make element inside table switch tabs using jquery ui tabs
        • Tabs, Hide Previous on first tab and next on last
        • How to trigger tab using jQuery
        • jquery-ui tabs getting anchor href with older jquery 1.8
        • External file does not load in jQuery Tabs
        • How to pre-load tab content (other view with table and data loaded from DB using Zend controllers), before displaying tabs ?
        • jQuery UI Tabs: Don't let user switch tabs if form input in active tab has content
        • Dynamic Jquery Tabs based on Php foreach

        Related Questions in JQUERY-1.10

        • JQuery Version issue with Internet Explorer Version 11 , IE 11
        • In what case does jQuery sortable fail silently?
        • How to get jQuery UI tabs element panels and set visibility on some of them?
        • using jquery-1.10.2.min and jquery-1.7.1.min in one template
        • jQuery UI tabs panelTemplate option deprecated
        • Same code acts differently on website and jsfiddle
        • How to call a jQuery DataTable object in an iframe?
        • jQuery Validation plugin version 1.11.1 is not working in Explorer 8
        • Collapse button is showing but not working after click in bootstrap 3.3 and jquery 1.1
        • jQuery UI Tabs Widget and Nested list
        • $.ajax To Failure: or not to Failure:
        • JavaScript queries are not working at all but work when inserted in jquery 1.10.0 file
        • Get landmarks nearby given coordinate in Javascript Asynchronously
        • jquery children function stopped working out of the blue - possible depreciation
        • Syntax error with parseJSON during unobtrusive validation

        Trending Questions

        • UIImageView Frame Doesn't Reflect Constraints
        • Is it possible to use adb commands to click on a view by finding its ID?
        • How to create a new web character symbol recognizable by html/javascript?
        • Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
        • Heap Gives Page Fault
        • Connect ffmpeg to Visual Studio 2008
        • Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
        • How to avoid default initialization of objects in std::vector?
        • second argument of the command line arguments in a format other than char** argv or char* argv[]
        • How to improve efficiency of algorithm which generates next lexicographic permutation?
        • Navigating to the another actvity app getting crash in android
        • How to read the particular message format in android and store in sqlite database?
        • Resetting inventory status after order is cancelled
        • Efficiently compute powers of X in SSE/AVX
        • Insert into an external database using ajax and php : POST 500 (Internal Server Error)

        Popular # Hahtags

        javascript python java c# php android html jquery c++ css ios sql mysql r reactjs

        Popular Questions

        • How do I undo the most recent local commits in Git?
        • How can I remove a specific item from an array in JavaScript?
        • How do I delete a Git branch locally and remotely?
        • Find all files containing a specific text (string) on Linux?
        • How do I revert a Git repository to a previous commit?
        • How do I create an HTML button that acts like a link?
        • How do I check out a remote Git branch?
        • How do I force "git pull" to overwrite local files?
        • How do I list all files of a directory?
        • How to check whether a string contains a substring in JavaScript?
        • How do I redirect to another webpage?
        • How can I iterate over rows in a Pandas DataFrame?
        • How do I convert a String to an int in Java?
        • Does Python have a string 'contains' substring method?
        • How do I check if a string contains a specific word?

        Copyright © 2021 Jogjafile Inc.

        • Disclaimer
        • Privacy
        • TOS
        • Homegardensmart
        • Math
        • Aftereffectstemplates