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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T00:56:35+00:00 2026-05-16T00:56:35+00:00

I have a dropdown menu that works via #id ul li ul { display:

  • 0

I have a dropdown menu that works via

#id ul li ul {
display: none;
}

#id ul li:hover ul {
display: block;
}

and this works fine except i have a li inside the shown ul (#id ul li ul li)

this ul has a .click jquery event assigned to it that,

when it is click it adds four anchor tags inside itself and replaces its content

so it goes from

() = li
[] = anchor
([Export])

to

([Export Draw 1]  
[Export Draw 2]  
[Export Draw 3]  
[Export Draw 4]  
[Export All]

this works fine, except

when the state changes from #id ul li:hover ul to #id ul li ul i need to change the content back to ([export])

i tried doing it on mouse leave of #export but it seems as if #export does not know its height as it is only the height of the single li

  • 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-16T00:56:36+00:00Added an answer on May 16, 2026 at 12:56 am

    You can use the mouseleave event, like this:

    $("#id ul li").mouseleave(function() {
      //code here to set those tags back
      //possibly: $(this).children('ul').html("<li>...</li>");
    });
    

    I’m not clear on your anchor code, but the event’s the main thing here, just put in code there to replace the links in the reverse of what you’r currently doing and you’re all set.

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

Sidebar

Related Questions

Currently have a drop down menu that is activated on a hover (from display:none
I have a dropdown menu that works fine, but I would like it so,
I have a dropdown menu on a website that works perfectly on all browsers
I have a dropdown (ul.sub-menu) with items inside (ul.sub-menu > li) that I'd like
I am using this code that simulates a dropdown menu as it works in
I have a simple dropdown menu that works nicely but is there a way
I have a bootstrap dropdown in the navbar that works perfectly, except when I
So I have this dropdown menu, when you hover over a link a dropdown
I have built a dropdown/ mega menu that works perfectly when placed in the
Background: I have a dropdown menu that basically works the same as the one

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.