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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:40:28+00:00 2026-06-05T23:40:28+00:00

I tried this here: http://jsfiddle.net/92HXT/1/ but it does not work. It only works if

  • 0

I tried this here: http://jsfiddle.net/92HXT/1/ but it does not work.
It only works if I use show("slow")/hide("slow").

Thanks.

  • 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-05T23:40:30+00:00Added an answer on June 5, 2026 at 11:40 pm

    While not the sharpest animation, I have enabled it to behave the way I think you’re wanting by finding the parent and hiding all the siblings. I’m not sure yet why this slides the elements out to the left whereas a direct call to .siblings() doesn’t seem to.

    Seen here.

    As others have mentioned, using classes to identify a group of items is the correct approach instead of by ID.

    Update:

    While I’m still not sure why siblings() doesn’t find the siblings to the div you’ve found by ID, I’m suspecting it has to do something with the process of showing / hiding or possibly even using the sliding animation. Here is my suggested jQuery/jQueryUI:

    $('a.view-list-item').click(function () {
        var divname= this.name;
        $("#"+divname).show("slide", { direction: "left" }, 1000);
        $("#"+divname).parent().siblings(":visible").hide("slide", { direction: "left" }, 1000);
    });
    

    Here is the updated version.

    Update:

    An excellent update to the solution by @jesus.tesh

    Update:

    A behavior update to the solution by @erwinjulius.
    I changed DIVs positioning so it behaves better, allowing user to click on links quickly without breaking the animation.
    Added white background and left-padding just for better effect presentation.

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

Sidebar

Related Questions

Here's an example: http://jsfiddle.net/JPQxX/ I tried this in Chrome and FF. In both browsers
I tried this JavaScript but it doesn't work - here I need to change
I finally got some parts working here: http://jsfiddle.net/trXBr/5/ but when I put the code
I am fiddling with this javascript code here http://jsfiddle.net/7Sd4W/4/ I am trying to get
Fiddle here: http://jsfiddle.net/emJcx/1/ I have a drop down menu that is a simple show
My friend gave the following code which is working awesome here http://jsfiddle.net/WVLE2/ I tried
What I have is in my fiddle here http://jsfiddle.net/mPuj9/4/ What I tried to do
I am using this code: http://jsfiddle.net/q3nUS/ $('#cf11_field_20').change(function() { $(#li-11-22)[$(this).val() == full03_accommodation_hotel ? 'show' :
I tried looking this up on here but couldnt find a proper answer. I
I tried to compile Ercia Sadun's sample code here , but this error came

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.