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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T03:26:31+00:00 2026-06-05T03:26:31+00:00

I am trying to create a simple sidebar for my website using jquery and

  • 0

I am trying to create a simple sidebar for my website using jquery and I am having some trouble with the hover functionality of it. When a user hovers over a category, a submenu is suppose to appear. I would like the submenu to close if a category above or below is hovered. I created a jsFiddle to help show my problem and how submenu doesn’t close down like it should. I have been trying to figure this out for hours now, I would greatly appreciate any help with this.

http://jsfiddle.net/BGcDc/7/

thank you.

  • 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-05T03:26:33+00:00Added an answer on June 5, 2026 at 3:26 am

    You forgot to hide your subment in the mouseleave function. Just add $(this).find(".submenu").hide(); to your existing handler:

    $(".category").mouseleave(function() {
        $(this).find(".submenu").hide();
        $(this).css("background-color", "#eee");
        $(this).css("border", "1px solid grey");
        $(this).css("border-bottom", "none");
        $(this).css("width", "180px");
        $(".category:last").css("border-bottom", "1px solid grey");
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a simple toggling sidebar using jquery, where it expands and
Im trying to create a simple pan and zoom app using silverlight 4, but
I'm trying to create a simple example of an editable gridview, and for some
I'm trying to create a simple markup with header+content+footer+sidebar. The sidebar must float above
I'm trying to create simple ExtJs application that manages Users and User's Roles. Set
I'm trying to create a sidebar which follows the user when he scrolls down
I created a Sidebar in Excel using WPF, and trying to drag some some
I was trying to create simple program that would perform some trivial operation with
trying to create a simple slider for an input. Using a survey gem that
Im trying to create a simple callback using blocks. I have a MainViewController which

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.