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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T06:56:33+00:00 2026-06-09T06:56:33+00:00

At the following fiddle I’ve implemented two modals that act like a wizard: $(‘#jumptosecondmodal’).click(function(e)

  • 0

At the following fiddle I’ve implemented two modals that act like a wizard:

$('#jumptosecondmodal').click(function(e) {
    $('#secondmodal').modal('show');
    $('#firstmodal').modal('hide');
})

http://jsfiddle.net/nV8XZ/show

http://jsfiddle.net/nV8XZ/

Instead of switching between the modals (show/hide), I need to animate the first modal aside until disappearing, revealing the second modal.

Edit:

I’ve managed to implement the sliding, but it works as expected only for the first run. Consecutive runs doesn’t slide but toggle (until page refreshing)

See:
http://jsfiddle.net/nV8XZ/22

Edit2:

Thanks ridecar2 for the help,

And here is a enhanced working version:

http://jsfiddle.net/nV8XZ/27/show

  • 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-09T06:56:34+00:00Added an answer on June 9, 2026 at 6:56 am

    In your later jsFiddle you need to do:

    $('#jumptosecondmodal').click(function(e) {
      $('#secondmodal').width('1px');
      $('#secondmodal').modal('show');
      $('#secondmodal').animate({width: 400}, 2500, function(){
        $('#firstmodal').modal('hide');
      })
    })
    

    $('#secondmodal').width('1px'); is the important line as it sets the width of the second modal area back to 1px each time you use it.

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

Sidebar

Related Questions

I have following fiddle: http://jsfiddle.net/BFSH4/ As you see there are two issues: The h1
In the following Fiddle I would like to be able to set the selectedFruit
Please take a look at the following fiddle: http://jsfiddle.net/ellenchristine/tty3e/ Note that when you expand
I have managed to create a javascript dropdown using the following fiddle: (function() {
Hey all i have the following jsfiddle > Fiddle that i need some help
I have created a fiddle with the following situation and I'd like an idea
Can someone take a look at the following fiddle: http://jsfiddle.net/R4bCy/1/ I thought that a
In this fiddle , I have the following javascript statement: document.write(one two three.split(/\S+/).length);​ It
I have the following fiddle in jquery : var checks = $('input[name= ScheduleCharge[hspecialty][]]:checked'); $(checks).each(function(){
In Webkit, the following fiddle works as expected. That is to say, #navigation's left

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.