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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:44:21+00:00 2026-05-27T06:44:21+00:00

I have a dropdown issue on my navigation pane. Here is my javascript: $(document).ready(function

  • 0

I have a dropdown issue on my navigation pane.

Here is my javascript:

$(document).ready(function () {
$('#column .subnav li').hover(
  function () {
   //show its submenu
   $('ul', this).slideDown();
  }, 
  function () {
   //hide its submenu
   $('ul', this).slideUp();         
  }
);
});

My navigation markup:

<ul>
<li><a href=#" style="font-weight:bold;">Administrator Record</a>
    <ul>
        <li><a href="#">Change Password</a></li>
        <li><a href="#">Add Administrator</a></li>
        <li><a href="#">Edit Administrator</a></li>
        <li><a href="#">Delete Administrator</a></li>
    </ul>
</li>
<li><a href=#" style="font-weight:bold;">Student Record</a>
    <ul>
        <li><a href="#">Add Student</a></li>
        <li><a href="#">Edit Student</a></li>
        <li><a href="#">Delete Student</a></li>
    </ul>
</li>
</ul>

This works fine, but sometimes whenever I hover on the “Administrator Record” the dropdown slides up and down unusually. Hovering out then hovering in back fixes this. Any suggestion?

  • 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-27T06:44:22+00:00Added an answer on May 27, 2026 at 6:44 am

    Try this, remember to replace ul li etc. with your ids:

    $(document).ready(function () {
        $('ul li, ul li ul').hover(
          function () {
           //show its submenu
           $('ul', this).slideDown();
          }, 
          function () {
           //hide its submenu
           $('ul', this).slideUp();         
          }
        );
    });
    

    I have added ul li ul as another selector, so when you hover over this it still shows or hides the menu.

    Also, I noticed an error in your mark up, check the links and the quotes,

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

Sidebar

Related Questions

I have a web page with a CSS dropdown navigation menu. My issue is
Here's the issue: I have a JS dropdown for country and state that runs
I'm running in a little issue here regarding jsf related dropdown selection. I have
I have a page with a dropdown. The onchange event calls a Javascript function
I have an issue regarding to auto populating a select dropdown from jQuery/JSON data
I have a dropdown list that calls a vbscript.The issue is that when I
I have an issue where the dropdown menu options appear beneath the swfobject which
Everyone. I have a little issue with selecting value from the dropdown list. When
I am running into a strange issue. I have a dropdown list that contains
Hey. Having a rather puzzling issue with my dropdown menus and iframes. I have

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.