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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:27:29+00:00 2026-05-27T05:27:29+00:00

Sorry the title isn’t more specific. I have some minor problems with a jquery

  • 0

Sorry the title isn’t more specific. I have some minor problems with a jquery menu I coded. It can be seen on wlmtest.info

Its the main menu. The trouble I’m having is as follows.

If you hover over a menu button at the top, the menu drops down. Now move your mouse UPWARDS, do not hover over the actual drop down. The menu drop continues to display even though the mouse has left the menu.

The only way to get rid of the dropdown is to hover over the menu dropdown and then move your mouse off it.

My code is as follows

jQuery("ul.lmenutabs li").mouseenter(function() 
{
    jQuery("ul.lmenutabs li").removeClass("active"); //Remove any "active" class
    jQuery(this).addClass("active"); //Add "active" class to selected tab
    jQuery(".lmenutab_content").hide(); //Hide all tab content

    var activeTab = jQuery(this).find("a").attr("href"); //Find the href attribute     value to identify the active tab + content
    jQuery(activeTab).fadeIn(); //Fade in the active ID content
    jQuery(".lmenutab_container").fadeIn()
    return false;
});

jQuery(".lmenutab_container").mouseleave(function() {
    jQuery(".lmenutab_content").hide(); //Hide all content
    jQuery(".lmenutab_container").hide(); //Hide all content
    jQuery("ul.lmenutabs li").removeClass("active");
    return false;
});

As you can see I have a mouseenter to get the drop down to display. And then a mouseleave so that when you hover over the dropdown and leave, the dropdown div is hidden.

How can I get it so that the dropdown is hidden when you leave the menu buttons at the top as well? Without the dropdown disappearing when you’re leaving the button to hover over the dropdown menu.

Sorry if this sounds confusing, I’ll try to explain again if you need me to.

Any help is much appreciated.

  • 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-27T05:27:30+00:00Added an answer on May 27, 2026 at 5:27 am

    You are waiting for a mouseleave() event on the menu itself, but if the mouse never enters the menu, the mouse leave event is never triggered.

    Add a mouseenter event on the header to hide the menu and a onClick() action on the page itself to make sure that the user can always get rid of your menu by clicking outside of it.

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

Sidebar

Related Questions

Sorry the title isn't more help. I have a database of media-file URLs that
Sorry if the title is poorly descriptive, but I can't do better right now
Sorry if the title doesn't make sense. Basically I have a series of strings
I'm a really newbie, so sorry if the title isn't grammatically correct :p Anyway...
Sorry for the title.....bit difficult to word what I really want to ask. Some
I am sorry for possible misleading about the title, but I have no idea
Sorry if the title isn't worded the best. My UserRepository has a method that
Ok the title isn't a great help I'm sorry but this is what I'm
Sorry if the title is hard to understand.. :S I have a table with
Sorry for the title, not easy to phrase it correctly. I have a table

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.