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

  • Home
  • SEARCH
  • 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 474151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:15:31+00:00 2026-05-13T00:15:31+00:00

I have navigation menu that once the user click then change and fade the

  • 0

I have navigation menu that once the user click then change and fade the content. The problem is even the child node became hidden. If I remove all the child node of my div id=”witness” and id=”believe” then it works fine. How to exclude child node of div id=”witness” or id=”believe”?

Thanks in advance.

here is my javascript

 $(function(){
    $("#content-linkwrap .hrefmenu").click(function(){

        $clicked = $(this);
        // if the button is not already "transformed" AND is not animated

            // each button div MUST have a "xx-button" and the target div must have an id "xx" 
            var idToLoad = $clicked.attr("id").split('-');

            //we search trough the content for the visible div and we fade it out
            $("#description").find("div:visible").fadeOut("fast", function(){
                //once the fade out is completed, we start to fade in the right div
                $(this).parent().find("#"+idToLoad[0]).fadeIn();
            })

    });
});

here is my html

 <div align="center" id="content-linkwrap"><a href="#" class="link-black hrefmenu" id="witness-href">WITNESS</a><a href="#" class="link-black hrefmenu" id="believe-href">BELIEVE</a></div>

        <div id="description">
            <div id="witness" class="desc">            
                <div class="top"><div class="bottom"><div class="left"><div class="right"><div class="bl"><div class="br"><div class="tl"><div class="tr">  
                    <div style="padding: 40px 20px;">
                        <h3 class="text-orange">WITNESS</h3>
                        <p class="aboutus wpad10" align="justify">To a company that has initiated major retail projects representing more than US $10 million in investments.
                        </p>
                        <p class="aboutus" align="justify">To a conglomerate so solid and expansive with far-reaching business interests and investments in food service, real estate, electronics, heavy equipment, jewelry trading, travel, and hardware trading that spans the Philippines, Hong Kong, Singapore and Malaysia. </p>                
                    </div>                    
                    <div class="clearleft"></div>
                </div></div></div></div></div></div></div></div> 
            </div>

            <div id="believe" class="desc">                
                <div class="top"><div class="bottom"><div class="left"><div class="right"><div class="bl"><div class="br"><div class="tl"><div class="tr">  
                    <div style="padding: 40px 20px;">
                        <h3 class="text-orange">BELIEVE</h3>
                        <p class="aboutus wpad10" align="justify">In a corporation that toasts not only the successes – but  also the opportunities.
                        </p>
                        <p class="aboutus wpad10" align="justify">In a business entity that puts a high premium on freedom and creative participation of its people at all levels…</p>
                        <p class="aboutus wpad10" align="justify">In a management that is committed to corporate expansion, to the personal growth of its people, and to partnerships and ventures that are mutually beneficial…</p>             
                    </div>                    
                    <div class="clearleft"></div>
                </div></div></div></div></div></div></div></div>
            </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-13T00:15:32+00:00Added an answer on May 13, 2026 at 12:15 am

    Currently you have the following, where the find() matches all the child ‘div’ elements even those nested deep underneath the ‘description’ element:

    $("#description").find("div:visible").fadeOut();
    

    To just match the immediate children of the ‘description’ element which are visible, you can use this code instead:

    $("#description").children().filter(":visible").fadeOut();
    

    For more information, see the jQuery Traversing API documentation.

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

Sidebar

Related Questions

I have navigation menu using images, I want that if the user click a
I have a strange problem on a navigation menu that only appears in Firefox
I am using a table navigation menu in my website in that i have
In my app I have a navigation menu that is constant between activities. To
I have a custom UserControl that I created as a navigation menu that parses
I have a navigation menu that slides out onto the webpage using .animate(). It
I have a situation where I have a navigation menu that's a series of
I have a side navigation menu that I want to be able to utilize
I need to have a navigation menu that reflects page changes based on clicks
Suppose I have a navigation menu that works by using Javascript to hide or

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.