I am using the following JQuery function to slideUp a form and replace it with a thank you paragraph after some code that sends the form data via PHP Mail.
The problem is the replacement just "pops" in after the form slides up and disappears, so my question is how can I add a slideDown for the replacement DIV?
function(data) { $('#myForm').slideUp(2400, 'swing', function() { $('#myForm').replaceWith ('<div id=\"thankyouDiv\">Thanks for filling out the form</div>'); });