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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:30:24+00:00 2026-05-23T13:30:24+00:00

Afternoon. Im struggling with this situation. I have a very simple tabbed content inside

  • 0

Afternoon. Im struggling with this situation.

I have a very simple tabbed content inside an AnythingSlider slide. The tabs work fine for the first slide but, when I switch slides the tab wont work.

Only the first slide works and if i change slides and click on the tabs I can see on Chrome’s developer tools that the first slide’s tabs are changing.

This is the tabs script.

$(document).ready(function(){
        $('.top5tabs').css("display","block");
        $('.top5tabs div').hide();
        $('.top5tabs div:first').show();
        $('.top5tabs ul li:first').addClass('active');
            $('.top5tabs  ul li a').click(function(){
            $('.top5tabs ul li').removeClass('active');
            $(this).parent().addClass('active');
            var currentTab = $(this).attr('href');
            $('.top5tabs div').hide('fast');
            $(currentTab).show('fast');
        return false;
        });
    });

and this is the html that repeats on each one of the slides.

<div class="top5tabs">

            <ul class="tabnav">

                <li><a href="#tab-1">option 1</a></li>

                <li><a href="#tab-2">option 2</a></li>

            </ul>

            <div id="tab-1" class="tabdiv">content</div>
            <div id="tab-2" class="tabdiv">content</div>
</div>
  • 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-23T13:30:25+00:00Added an answer on May 23, 2026 at 1:30 pm

    Your problem is that you’re trying to use the same “id” values for multiple elements on the page. You can’t do that and expect stuff to work.

    When you need multiple sets of tabs, you could switch to using “class” values to identify the <div> element to show instead of an “id”.

    Here is an update of your fiddle with unique “id” values.

    edit — and here is the version that keeps the tab control local to each group of tabbed elements.

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

Sidebar

Related Questions

I've been struggling to work this out all afternoon - it seems pretty simple
Whole afternoon I am struggling with the getting data from associations. I have these
Afternoon, So I have been at this one issue for hours and can't really
I'm really struggling with this. The problem is only with the content pages. I
Afternoon All, I have a simple file upload tutorial that i have completed for
Afternoon All, I have a simple gridview with list items items that have been
Afternoon Developers, I have a problem that's beginning to get on my wick. I
Afternoon, I am trying have an HTML file containing a frameset which contains two
Good afternoon, This should be an easy one. I've done the cookie-cutter default ASP.NET
Good afternoon, I have a web query in Excel 2002 going against a web

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.