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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:33:30+00:00 2026-05-26T22:33:30+00:00

Before reading the description please take a look at the drop down menu which

  • 0

Before reading the description please take a look at the drop down menu which I created in JSfiddle

http://jsfiddle.net/akhilpaul/bKxXZ/

I have a JQuery drop down menu which I taken from a tutorial 🙂 and it works great like animate the dropdown function smoothly. The problem is the animation(drop down) when I mouseover the down arrow(now red color) on the right side of the menu but this is not I’m looking actually I need to animate the drop down when I mouseover the menu(Our Services and Locations). And I made slight updates on the JQuery but that dosen’t work.. What I extra added to the Jquery is

added a class(.drop) to the particular li that having drop downs and commented the span function like this

 //$("ul.subnav").parent().append("<span></span>"); 

    $("ul.topnav li.drop").mouseover(function() {


<li class="drop">
        <a href="#">Our Services</a>
        <ul class="subnav">
            <li><a href="#">Contract</a></li>
            <li><a href="#">Sketch</a></li>
            <li><a href="#">Implementation</a></li>
        </ul>
</li>

Although I try to keep the hover effect of the drop down menu as visible when we move the cursor to drop down menu..

but both functions aren’t working!

Looking forward to your replies on this question

Thanks

Paul

  • 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-26T22:33:31+00:00Added an answer on May 26, 2026 at 10:33 pm

    You’re code can be condensed to just this:

    $(function() {
        $("ul.topnav li:has(.subnav)").hover(function() {
            $("ul.subnav", this).slideDown('fast').show();
        }, function() {
            $("ul.subnav", this).slideUp('slow');
        });
    });
    

    http://jsfiddle.net/bKxXZ/13/

    Here’s what changed:

    1. Change your .mouseover() selector from selecting the span to selecting any li that has a subnav.
    2. Change your selectors from $(this).parent() to just $(this) since our selector now points at what was the parent.
    3. Remove the trigger span code, you don’t need it now.
    4. Remove the trigger span .hover() code.
    5. Change .mouseover() to .hover() and combine it with the existing .hover(), since they both apply to the same element.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Before reading please note that I've googled this and read a ton of articles
Note: Before reading this question and its answer, please check your input element has
Before reading about my problem, first look at this GUI Diagram . There are
Before reading, please note that I am very new to both PHP and MYSQL.
My problem involves checking if I have a valid database connection before reading from
Reading about Kohana templates and saw something I've never seen before: $this->template->title = __('Welcome
I am taking an XML file and reading it into various strings, before writing
I want to scan a file and skip a line of text before reading.
Is it necessary to acquire a lock on a variable before reading it from
before reading my problem this work in a normal dynamic web project i create

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.