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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:56:04+00:00 2026-05-27T17:56:04+00:00

I have made a drop down menu which is working fine, but when i

  • 0

I have made a drop down menu which is working fine, but when i open a jquery dialog window, and then when i go for a drop down menu its menu is keep hiding behind the jquery dialog window, although i want the menu opened to be at front.

this is jquery code.
(document).ready(function() {

    $('#nav li').hover(function() {
        //show its submenu
        $('ul', this).slideDown(200);

    }, function() {
        //hide its submenu
        $('ul', this).slideUp(100);
    });

    $('ul li').click(function() {
        $('ul',this).slideUp(100);
    });
});

I have tried z-index but it doesn’t work either. Below is the css.

#nav {
margin: 0 0 0 5px;
padding: 0;
list-style: none;
}
#nav li {
float: left;
display: block;
position: relative;
background: #025b87;
z-index: 500;
}

#nav li a {
display: block;
padding: 8px 5px 0 5px; 
height: 23px;
text-decoration: none;
color: #FFFFFF;
text-align: left;
color: #FFFFFF;
}
#nav li a:hover {   
background-color: #d1d3d4;
color: #000000;
border-width:1px;
}
#nav li ul li a:hover { 
background-color: #d1d3d4;
color: #000000; 
}
  • 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-27T17:56:05+00:00Added an answer on May 27, 2026 at 5:56 pm

    I have figured it out, the default zIndex of dialog is 1000 and i was giving 500 zindex to nav menu. so it means the higher the zindex is, the more priority of an element is to be. so i must give the value higher than the deafult zindex value of dialog. so i have given the #nav li zindex to 1500 or any value greater than 1000. now 1500>1000. so the priority of #nav li in the stack is now greater than the jquery dialog.

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

Sidebar

Related Questions

I have a drop down menu made with Jquery. Right now, if you hover
I have made a new windows service which works fine using barebone code (just
So i have this dropdown made in html/css/js.. it slides down on mouseover, but
I have a class containing, among other things, a drop down menu. With the
I have a custom drop down box I have made and focus can be
I have a PHP script which is displaying a drop-down box.Now when I select
I'm busy to create an online agenda. I have 3 drop down menu's where
I have a dropdown menu. Its height is animated with jQuery from 5px to
Before reading the description please take a look at the drop down menu which
I've made a css drop down menu for my web, basically it is a

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.