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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:32:16+00:00 2026-05-17T02:32:16+00:00

I am working on a php form with some jquery, especially for the error

  • 0

I am working on a php form with some jquery, especially for the error and thank you messages. The jquery part can be viewed here:
http://jsbin.com/ohuya3
A working example of the form is available here:
http://cozyphant-living.com/php/formular4.htm
You have to hit the “Formular senden” button to see the message panel.
I wanted to make the thank you and or error panel make slide out and have the text fade in. The script is accepting my code (because it is still working) but actually I can not see that the text actually fades in. I have seen samples of sliding panels with fading in text. So it seems to be a wrong kind of coding that I did.
Any help is appreciated.

  • 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-17T02:32:16+00:00Added an answer on May 17, 2026 at 2:32 am

    The problem is that your #formResponse container is not hidden at first. As soon as the response text is inserted into it, it will show directly, instead of fading it in. You need to declare display: none; to hide it:

    <div class="contact-form-text" id="formResponse" style="display: none;"></div>
    

    The AJAX callback function will then insert the text into it, and then fade it in.


    UPDATE: If you want BOTH the slide and the the fade in, then you will need to use an extra response container, because once it slides out, it IS already visible and it can’t fade in from 100% visibility. So what you want would be something like this:

    <div id="formResponse_container" style="display:none;"> <!-- extra wrapper -->
        <div id="formResponse" class="contact-form-text" style="display:none;"></div>
    </div>
    

    and then in the jQuery script, instead of

    $("#formResponse").hide().html(data).show('slow'); //hide before slide!
    

    you would have

    $("#formResponse_container").slideDown("slow", function() {
        $("#formResponse").html(data).fadeIn("slow");
    });
    

    What that does is, it will first slide down the outer container, and once that animation is completed, it will fade in the inner container.

    Live example

    Hope this helps.

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

Sidebar

Related Questions

I am working on some form coding in PHP, and I have everything working
I am working on a PHP form that allows a user to add rows
I have simple php validation form that is halfway working. If you leave the
I am working on a php program that requires javascript on every form control.
I have an email attachment form that is working fine when the <form action=processingtheformfile.php>
My form is working fine with the validations being done by PHP. I have
I am working on a simple contact form written in php and have almost
I am working on a signup form, I am using PHP and on my
I have a form, and I have some jquery code to override the submit
I'm trying to add some validation to some form fields in a jQuery Mobile

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.