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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:15:24+00:00 2026-06-10T13:15:24+00:00

When a user clicks the Accordion Menu button it usually works. But, about 1

  • 0

When a user clicks the Accordion Menu button it usually works. But, about 1 out of 10 times the animation doesn’t stick and goes back to either expanded or collapsed, depending on what state it started at. I’ve copied the scripts from other places, but they seem simple enough.

HTML:

<ul id="system-nav">
    <li><div>Umbrella</div>
        <ul>
            <li><a href="../../Admin">Admin</a></li>
            <li><a href="../../Deshboard">Dashboard</a></li>
            <li><a href="../../Daylight">Daylight</a></li>
        </ul>
    </li>
</ul>

Like I’ve said, I’ve tried several different versions of the same thing. These were just taken from random places and I’ve only edited them slightly. All of them do the same thing.

$("#system-nav > li > div").click(function(){
if(false == $(this).next().is(':visible')) {
    $('#system-nav ul').slideUp(300);
}

$(this).next().slideToggle(300).delay(250);
});

$('#system-nav ul:eq(0)').hide();

$(document).ready(function() {  
$('#system-nav li div').click(function() {
    $('#system-nav ul').slideUp('slow');    
    $(this).next().slideDown('slow');
});

$("#system-nav ul").hide();

 });

$(document).ready(function(){
$('#system-nav li div').click(function() {
    $(this).next().slideDown('slow');
    return false;
}).next().hide();
});
  • 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-10T13:15:25+00:00Added an answer on June 10, 2026 at 1:15 pm

    In the first JS sample using :visible is not the right proprety. Use :hidden instead

    In the second one you’re cliping it ?

    In the last one you’re canceling it ?


    Here’s a working code: http://jsfiddle.net/Q9qNw/

    $("#system-nav").on("click","div",function(){
        if ($(this).next().is(":hidden")) {
            $(this).next().slideDown("500");
        } else {
            $(this).next().slideUp("500");
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I added a spry accordion, but the panels only open if the user clicks
I am attempting to make a simple accordion where the user clicks on level
When user clicks on select box , I want to hide the options menu
When the user clicks on a button, a new ListFragment is displayed. This fragment
When a user clicks a submit button I want the form to be submitted.
I have some java script that work behind a navigation menu, the user clicks
So I have an accordion menu to display results and a Show All button
I'm having trouble explaining this but here it goes: I have a custom accordion
When user clicks hyperlink on my ASP.NET page, I want a new browser to
If a user clicks the blank row at the bottom of a DataGridView and

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.