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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:06:15+00:00 2026-06-18T06:06:15+00:00

Here is the testing site link.I encountered the problem that displaying the sub-menu link

  • 0

Here is the testing site link.I encountered the problem that displaying the sub-menu
link

In that navigation bar “why stockholm ” when I hover it ,displayed the submenu also and when i hover the submenu its working normal wat i am doing wrong anyone much appreciated..

(function($){

    //cache nav
    var nav = $("#topNav");

    //add indicator and hovers to submenu parents
    nav.find("li").each(function() {
        if ($(this).find("ul").length > 0) {
            $("<span>").text("").appendTo($(this).children(":first"));

            //show subnav on hover
            $(this).mouseenter(function() {
                $(this).find("ul").stop(true, true).slideDown();
            });

            //hide submenus on exit
            $(this).mouseleave(function() {
                $(this).find("ul").stop(true, true).slideUp();
            });
        }
    });
})(jQuery);
  • 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-06-18T06:06:16+00:00Added an answer on June 18, 2026 at 6:06 am

    You should use children() instead of find(). When you use find('ul') it uses all ul inside your selector.

    Here is working jsFiddle.

            //show subnav on hover
            $(this).mouseenter(function() {
                $(this).children("ul").stop(true, true).slideDown();
            });
    
            //hide submenus on exit
            $(this).mouseleave(function() {
                $(this).children("ul").stop(true, true).slideUp();
            });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A curious problem here. I'm testing a site using IETester for Internet Explorer 8.
Here a small piece of code for testing and explain the problem. I have
Here is a test description, testing the Create New Widget use-case. Confirm that you
I am involved in testing an ASP.NET MVC site that uses a WF service
This is driving me crazy. Just testing a site on IE9 and discovered that
Here is my site. I'm trying to make its own testing URL for the
Here is some testing code: <script> var movieList = new Array(); var friendList= ;
I am testing Hibernate here is the situation and code: public static void main(String[]
I'm having an small issue with SQLXML in SQL Server 2008. Here's my testing
Here is the jquery I am testing: var length = $('#showLBVRBVVol').length; if(length != 0)

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.