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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T07:49:43+00:00 2026-05-21T07:49:43+00:00

Given one parent tab set, with each tab having multiple child tab sets. How

  • 0

Given one parent tab set, with each tab having multiple child tab sets. How do i create a <a href="#??"></a> that links between ‘cousin’ content? This is what I’ve tried so far, I do not claim it to be right! Every link i’ve tried to jump from tab id=#A.1 to cousin #E.2 has not succeeded.

script:

 <script> $(document).ready(function(event){
        var tabs = $("#parentTabSet, #childSet1, #childSet2").tabs();
    //here's what i've tried so far:
        $(".interTabLink").click(function(event){
    //this gets the `<ul><li><a href="#someId">tab user wants to see</a></li></ul>`
          var ulLink =$(".anytabset").find("[href='"+$(this).attr("href")+"']");
//filter the 'var tabs' array to only have the tabset we want.
          tabs.filter("#"+ulLink.closest("div").attr("id")).tabs("select", $(this).attr("href"));
        });
      });
    </script>

html:

<body>
<div id="parentTabSet" class="anyTabSet">
 <ul>
  <li><a href="#A">parent A</a></li>
  <li><a href="#B">parent B</a></li>
  <li><a href="#C">parent C</a></li>
  <li><a href="#D">parent D</a></li>
  <li><a href="#E">parent E</a></li>
 </ul>
 <div id="A">
   <div id="childset1" class="anyTabSet">
     <ul>
       <li><a href="#A.1">foo</a></li>
       <li><a href="#A.2">bar</a></li>
      </ul>
      <div id="#A.1"><p>insert your latin here</p></div>
      <div id="#A.2">
<!--- this will link to cousin #E.2, with parent tab E --->
<a href="#E.2" class="interTabLink">more information here</a>
      </div>
   </div>
 </div>
<div id="B">
<p>insert your latin here</p>
 </div>
<div id="C">
<p>insert your latin here</p>
 </div>
<div id="D">
<p>insert your latin here</p>
 </div>
<div id="E">
<div id="childset2" class="anyTabSet">
     <ul>
       <li><a href="#E.1">foo</a></li>
       <li><a href="#E.2">bar</a></li>
      </ul>
      <div id="#E.1">stuff</div>
      <div id="#E.2">here</div>
   </div>
 </div>
</div>
</body>
  • 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-05-21T07:49:44+00:00Added an answer on May 21, 2026 at 7:49 am

    Something like this would work:

    var mytabs = $('.anyTabSet').tabs();
    
    $(".interTabLink").click(function( event ){
        event.preventDefault();
        var id = $(this).attr("href");
        var tab = mytabs.find("li [href='"+id+"']");
        if ( tab.length ) {
            var tabset = tab.closest('.anyTabSet').tabs("select", id);
            if ( tabset.length ) {
                id = id.replace(/_[0-9]/,'');
                tabset.parents('.anyTabSet').tabs("select", id );    
            }
        }
    });
    

    Working example: http://jsfiddle.net/petersendidit/uz7d5/

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

Sidebar

Related Questions

Given three models that are each nested in each other. If I create the
Given a table of models 'A', that can have multiple child models 'B', of
Given the following two entities : class Parent { @OneToMany(cascade=CascadeType.ALL) private Set<Child> children; (...)
If I have entities set up for Parent - Child - Grandchild and one
I need to generate a set of coordinates in Erlang. Given one coordinate, say
I have 2 divs above each others, at a given moment one is shown
Given that I only have one monitor, what's the best way to debug a
I'm using Entity Framework 4 and have a one-to-many relationship between a parent and
I'm editing multiple instances of a parent model in an index view in one
If i create a new Parent object and then add new child object to

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.