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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:07:17+00:00 2026-06-15T16:07:17+00:00

What I want is fairly simple: I have a container with a background. Inside

  • 0

What I want is fairly simple:

I have a container with a background. Inside the container are triggers and hidden boxes like so:

<div id="container">

<span id="box-1">Open 1</span> <span id="box-2">Open 2</span> <span id="box-3">Open 3</span> <span id="box-4">Open 4</span> <span id="box-5">Open 5</span> 

<div class="box box-1">Hi! I'm Box 1</div>
<div class="box box-2">Hi! I'm Box 2</div>
<div class="box box-3">Hi! I'm Box 3</div>
<div class="box box-4">Hi! I'm Box 4</div>
<div class="box box-5">Hi! I'm Box 5</div>

</div>

Once a trigger is clicked a target box slides down. If a box is open already it slides up and the new target box slides down. I have this working on a different part of the site but it’s a bit more complex to share in jsfiddle. The simple version I can’t get to work correctly is here:

jsFiddle: slideUp and slideDown issue

It seems that the slideDown function is starting before the slideUp completes. I’ve moved the slideDown outside the slideUp callback and I get the same reaction. I’ve worked with duration and delay but it still has the same issues.

—– EDIT —–

I should note that my goals is for the container to collapse completely before expanding again.

  • 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-15T16:07:19+00:00Added an answer on June 15, 2026 at 4:07 pm

    It’s because you need to hide() before you slidedown again

    $('.box').not(boxItem).slideUp(function(){
        $('.box'+boxItem).hide().slideDown();
    });
    

    http://jsfiddle.net/dYMx8/

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

Sidebar

Related Questions

I have a fairly simple class that I want to save to SQL Server
I have a fairly simple check constraint, where I want to force two columns
I have a fairly simple haskell project set up, where I just want to
I have this fairly simple form: <form action=...> <div> <input type=text class=input-text value= name=text
I have a Master Page with nested pages in ASP.NET. Fairly simply I want
We want to do some fairly simple analysis of user's C++ code and then
I have a fairly large model and I want to retrieve only a select
I have a simple address book app that I want to make searchable. The
I have a fairly easy SQL task at hand and I'd like validation (or
anyone using ffmpeg I have a fairly simple wmv exported by a user from

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.