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

The Archive Base Latest Questions

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

Background: I ran into a problem that I find somewhat unexpected. I have a

  • 0

Background:

I ran into a problem that I find somewhat unexpected. I have a small jQuery module where I’ve been using .slideToggle() to show/hide an element and it has been working fine. Today I’m implementing two public methods for my plugin, to either show or hide the element with a sliding effect.

Simple as it sounds, I though I’d just use .slideUp() and slideDown() to accomplish the same thing. I was really surprised when I realized that nothing happened upon calling those methods on the element.

As a side note, calling .show() and .hide() works fine as well, but without the desired animation off course.

I always thought that .slideToggle() implemented the same functionality as .slideUp() and .slideDown() “under the hood”, but apparently it doesn’t.

My question:

In what way does .slideToggle() differ from .slideUp() and .slideDown() and what do I have to consider when using one compared to the others?

Update, example:

I’ve been able to break it down into the most crucial components needed to reproduce this error in this fiddle. You can comment out .slideToggle("slow") and .slideUp("slow") respectively to test it. With slideToggle it works, with slideUp it doesnt.

  • 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-15T08:10:20+00:00Added an answer on June 15, 2026 at 8:10 am

    The problem is that slideUp is not the best name for the method. A better name would be “slideHide”. If you change it to slideDown it works as expected, since that corresponds to show.

    From http://api.jquery.com/slideUp/

    Description: Hide the matched elements with a sliding motion.

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

Sidebar

Related Questions

I have ran into a problem that i suspect has to do painting/drawing elements
I have ran into a problem that I am completely clueless about. I am
Here is a recreation of a problem i ran into last week. I have
Just ran into a problem with repeating background image. In the case when the
I am building a menu using XHTML,CSS, and jQuery and I ran into a
Background A while back, I ran into some behaviour that I found very strange
I ran into an issue that I've been researching for hours to no avail.
I decided to play with some CSS3 and ran into some problems with background
Background: I would like to dismiss a modalView that I have presented earlier and
I'm new to JQuery and don't have a huge background in Javascript, either -

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.