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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T09:21:56+00:00 2026-06-16T09:21:56+00:00

I have a CSS drop down menu on a website. Along the top there

  • 0

I have a CSS drop down menu on a website. Along the top there are a list of parent categories, when you hover over one, a drop down menu appears where you can then click on one of the child categories.

When you click on the child category, an ajax page load is triggered and the contents of the page are replaced. Works good.

But the problem is, because the page is not reloaded, the drop down menu is still there. You have to move the mouse off it to get it to go away. This is annoying. We want the menu to dissapear when you click on a child category. On a touch device this behaviour is even more annoying.

Rather than posting the code here, I will put a link to the website: http://tinyurl.com/blvtlwz
The menu in question is the one at the top – ‘Competition Horses’ ‘Leisure Horses’ etc.

I would be interested in any ideas of how to clear the hover state when a click is detected, or alternatively a better way of handling the menu? I have fiddled around with jquery removeClass(), but I haven’t had much luck.

Thanks

  • 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-16T09:21:58+00:00Added an answer on June 16, 2026 at 9:21 am

    You can try with this script:

     $(function(){
       $('#nav li').hover(function() {
         $('ul',this).show(); // this will show the hidden ul
       });
      $('#nav li ul li').click(function() {
         $(this).parent().hide().end(); // this will hide the ul
      });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am frustrated. I have one website where my drop-down CSS menu works and
I have a css drop down menu working except for one thing: the last
I have a jquery/css drop down menu that I am working on for a
i have built jQuery drop-down menu which is having problems floating over the UI
I have a pure CSS navigation menu with a drop-down section based on some
I have a drop down menu done in css only, done in the following
I have a horizontal drop down CSS menu at http://www.stevemoorecpa.dreamhosters.com/ My problem is the
I have a css powered drop down menu which doesn't work properly on the
I have a three-tier CSS drop down menu that is working fine, but I'm
im using a joomla 1.6.4 install and have a custom css/javascript drop-down menu in

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.