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 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

I have a dropdown menu that works fine, but I would like it so,
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
I have a dropdown menu that is filled by a mysql database. I need
I have a drop down menu and it works perfectly on everything except IE6
I have a shopping cart that displays product options in a dropdown menu and
I have a dropdown menu system setup such as this... This is the scripting
I have built a dropdown menu system, everything works when tested independently, the problem
I have a dropdown menu with this HTML: <ul id=dropdownmenu class=dropdown maintopmenu> <li class=topmenu
I have a dropdown menu with a couple of values that link to functions.

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.