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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T20:12:49+00:00 2026-05-27T20:12:49+00:00

I have five links rendered at page that represents navigation header of the page,

  • 0

I have five links rendered at page that represents navigation header of the page, also I have 5 divs rendered on the same page. that caries the content of the page. Each link in header is related to the one div with content. When clicking on the links one div is showed with jQuery function .show() and all the others are hidden with jQuery function .hide()

The problem is when page is opened in IE 6 browser, after 2 or 3 clicks on links page gets rendered wrongly. Div with content are mixed.

I have tried to click on links slowly but problems remains, so it is not because of slow processing in IE 6.

What could cause this problem?
Is there any solution for this?
Did someone have similar problems?

Thanks a lot.

  • 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-27T20:12:49+00:00Added an answer on May 27, 2026 at 8:12 pm

    Don’t use toggle for this since you will keep state (clicked|not clicked) as well
    A simple click method will do, showing content and hiding siblings

    A solution for you http://jsfiddle.net/48LEq/

    HTML:

    <ul id="mymenu">
        <li><a href="#" rel="content1">item 1</a></li>
        <li><a href="#" rel="content2">item 2</a></li>
        <li><a href="#" rel="content3">item 3</a></li>
        <li><a href="#" rel="content4">item 4</a></li>
        <li><a href="#" rel="content5">item 5</a></li>
    </ul>
    
    <div id="content1" class="content">content 1</div>
    <div id="content2" class="content">content 2</div>
    <div id="content3" class="content">content 3</div>
    <div id="content4" class="content">content 4</div>
    <div id="content5" class="content">content 5</div>
    

    CSS

    .content {display:none;}
    

    JS

    // Once the DOM is ready
    $(function() {
        // load first content
        $(".content:first").show();
        // bind the click method                
        $("#mymenu a").click(
            function() {
                var content = "#" + $(this).attr("rel");
                $(content).siblings(".content").hide();
                $(content).show();
            }
        );
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have five links that I want to change the content in the same
I have five buttons on one form that when clicked enables a bool each
I have five divs on my page (#art #fashion, #self, #nightlife, #community). right now,
i have five divs <div id=box1>content 1</div> <div id=box2>content 2</div> <div id=box3>content 3</div> <div
I have five activities/screens that I would like to be able to swipe between,
I have five tables that are fairly similar in structure but different enough that
So I have these five buttons that I want to be always present in
I have an unordered list with five list items, each with a link inside
I have an unordered list with five list items, each with a link inside
I have written some C++ code that generates a std::vector. I also have a

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.