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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:57:22+00:00 2026-05-28T05:57:22+00:00

I have an issue with my jQuery code. There is a popup panel that

  • 0

I have an issue with my jQuery code. There is a popup panel that I have in my site that contains a form. When I click Submit on my form, my data is submitted to my email and database (as requested). However, once this has been submitted, I want:

  1. My form <div> to hide.
  2. My confirmation <div> to show.
  3. A 2 second delay to take place.
  4. My entire form panel to fade out.
  5. My confirmation <div> and my form <div> to restore to normal (including resetting the form, which I am not sure how to do, so any help on that front would also be grateful)

Note: I want 5. to take place so that a second email can be sent if needed. I can live without that, but at least up to 4. would be needed.

When I submit my form, my data is processed as desired, but my panel is hidden as a whole, with no <div> transitions taking place, so I do not see my confirmation message. My code is currently set as:

$.post('/includes/hireme.php', $("#formHireMe").serialize(), function(data) {
  $('div#hiremeFormPane').hide();
  $('div#hiremeSubmittedPane').show().delay(5000).hide();
  $('div#hiremeFormPane').show();
  $('div#hiremePanel').fadeOut(150);
});

Does anyone know a) why? or b) if there is a better way of achieving that effect?

  • 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-28T05:57:23+00:00Added an answer on May 28, 2026 at 5:57 am

    show and hide are not animations when they are not given a duration. delay affects the animation queue. Since show and hide are not being place on the animation queue, delay is not delaying the hide, causing it to immediately hide.

    You can either give hide a duration (even 1 will do making it nearly instant, but placing it on the animation queue to now be affected by delay) or you will need to use setTimeout or some other animation like fadeOut.

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

Sidebar

Related Questions

I'm running a weird issue here. I have code that makes jquery ajax calls
I have an issue regarding to auto populating a select dropdown from jQuery/JSON data
I have an issue with this jquery code below. Please give me advice or
I have an issue with a jQuery script I wrote that is driving me
I have an Ajax control that is loaded into a Yahoo popup using jQuery.
I have setup some code on JSFiddle. The jQuery :contains selector works fine in
I have some jQuery code that, without it in the document it passes validation
I have a bit of HTML/JQuery code that only seems to be working for
I have the following jquery code that I've embedded inside of a View: $(document).ready(
Can anyone help? I have an issue with calling a asp.net webservice from jquery..

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.