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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:44:18+00:00 2026-06-01T13:44:18+00:00

I have a CSS dropdown menu that is functioning how I want it to

  • 0

I have a CSS dropdown menu that is functioning how I want it to except for one part, clicking on one of the submenu items does not close the submenu.

Most people probably don’t care about this because each link will take them to a new page, but mine just stays on the same page and calls a javascript function.

Using jquery, I am able to hide the submenus on click like so:

        $("ul.pureCssMenu li a").live('click', function() {
            $("li.pureCssMenui").hide();
        });

However after one submenu is clicked on, all submenus are now hidden forever. Is there a way to unhide it without doing something cheesy like a timer? Or a better way to approach this in general?

Here is the page I’m working on:
http://www.nba.com/warriors/wallpapertest_031.html

Thanks in advance.

  • 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-01T13:44:19+00:00Added an answer on June 1, 2026 at 1:44 pm

    You should hide the < UL > inside not the < LI >
    so something like this

    $("ul.pureCssMenu li a").live('click', function() {
                $("li.pureCssMenui ul").hide();
     });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some custom dropdown css/jquery menus that are not overlapping (covering) some text
I currently have a CSS <ul><li> dropdown menu that uses the following code. Unfortunately
I have a css dropdown menu with an HTML select form inside of that
I want to create a Dropdown menu where I have 3 level, I have
I have a UL LI menu that I am turning into a select dropdown
I have a web page with a CSS dropdown navigation menu. My issue is
I have a CSS menu. The problem is that in a ul li a
I have an issue with a dropdown menu that is appearing too much to
I am working on a pure CSS dropdown menu. (IE6 is not important to
I have a dropdown menu, the problem is that on the main menu is

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.