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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:04:28+00:00 2026-05-27T04:04:28+00:00

When I submit my form, the last function I have is: $(#message).show().delay(5000).fadeOut(); This will

  • 0

When I submit my form, the last function I have is:

$("#message").show().delay(5000).fadeOut();

This will show my thank you message for 5 seconds, and then fade the “message” div out.

I then tried adding this function below it:

$("#slide_panel").slideToggle("slow");

because I want the form (which is inside the #slide_panel div) to close / slide up AFTER the 5 second delay…. but when I add this function, its almost like the 5 second delay doesn’t exist and the success message shows for about half a second and then the whole contact form dissapears as its supposed to.

What is wrong with my code?

$("#message").show().delay(5000).fadeOut();
$("#slide_panel").slideToggle("slow");
  • 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-05-27T04:04:29+00:00Added an answer on May 27, 2026 at 4:04 am

    You can update the code to the following …

    $("#message").show().delay(5000).fadeOut(function(){
        $("#slide_panel").slideToggle("slow");        
    });
    

    That is, add the slideToggle of SlidePanel in the message callback. For more ideas, check http://jsfiddle.net/sf2Nr/1/

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

Sidebar

Related Questions

I am using the following code: $(.searchBtn).closest('form').submit(function () { $(this).find('.showComments tr:last').after(<tr><td>TEST</td></tr>); }); and I
$('form').submit(function(){ this.action=http://www.sitename.com/post; return false; }); having altered the action attribute of the form ,i
I have a form something like this: <form> <ul> <li>...</li> <li><input type=submit value=go /></li>
I got this code in my submit form <form id=myform action='hello.php' method='GET'> <input type=button
I have a form with many input fields. When I catch the submit form
I am using this tutorial to create a login form http://www.ryancoughlin.com/2008/11/04/use-jquery-to-submit-form/ It authenticates against
$('#post_form').submit(function() { $(#ajax_bar_loader).show(); $.ajax({ url: 'add.html', data: $('#post_form').serialize(), dataType: 'json', type: 'post', success: function(
I have this form: <form action=contact.php method=post id=contactform> <ol> <li> <label for=name>First Name *
Hi been wrestling this form and the last step (actually submitting) has me scratching
I have spent quite some time making a function and the last 15-20 minutes

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.