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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:02:21+00:00 2026-06-10T12:02:21+00:00

ttI have such navigation: <ul> <li><a href=’#’>Menu title 1</a> <ul> <li><a href=’#’>Submenu title 1</a></li>

  • 0

ttI have such navigation:

<ul>
   <li><a href='#'>Menu title 1</a>
      <ul>
         <li><a href='#'>Submenu title 1</a></li>
         <li><a href='#'>Submenu title 2</a></li>
         <li><a href='#'>Submenu title 3</a></li>
      </ul>
   </li>
   <li><a href='#'>Menu title 2</a>
      <ul>
         <li><a href='#'>Submenu title 1</a></li>
         <li><a href='#'>Submenu title 2</a></li>
         <li><a href='#'>Submenu title 3</a></li>
      </ul>
   </li>
...

then with jquery I set z-index for hovered menu item higer as for submenu and fade in submenu element. So hovered menu item element is visible over submenu and all other menu items are under submenu.

Now i need to set mouse event for submenu – mouseleave => hide submenu.
The problem: as menu item is now over submenu – if mouse stays over submenu but hovers menu item 1, jquery understands it as mouseleave for submenu

It is very common problem for me, I always use some kind of “cheats” but i think there must be an easy solution.

I don’t provide full source code, but I don’t ask you for working code, I just need some idea. Hope for help, thx.

enter image description here

  • 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-10T12:02:23+00:00Added an answer on June 10, 2026 at 12:02 pm

    Here’s one way you can set this up using pure CSS:

    http://jsfiddle.net/mblase75/nr8xZ/

    The trick is to apply :hover styles to the submenus that display them only when a list item is hovered over. Since the submenu is also part of the parent list item, it stays displayed as long as the mouse is over the submenu. And you can still add additional jQuery/JavaScript interactivity to the links and/or list items, if needed.

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

Sidebar

Related Questions

I have the following issue with handling datetime formats for a component I am
I have inherited some code, the original author is not contactable and I would
I have a TCP socket connection where I get byte array of data which
I have this situation where I have a SqlDatasource control and the select query
I have a field with dd-mm-yy hh:mm:ss tt I want to select only the
I have the following string TheTimeFormat as the custom time format: {0:h:mm tt} I
I will have an integer calculated from datediff() let's say.. it is.. declare @earliestTime
I have the following regex: (?i:^TPI$|^TIP$|^IPT$|^ITP$|^PIT$|^PTI$|^IP$|^PI$|^TI$|^IT$|^PT$|^TP$|^T$|^P$|^I$) How can I simplify it? My regular expression
I have dropdown very similar to this: <select id='someSelect'> <option value=0>---select one---</option> <optgroup label=Bikes>
I have a timestamp that I would like to represent as two lines. Currently,

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.