I'm currently trying to create an email form with Wordpress. I've gotten the form to function correctly, however I want to make it FadeOut when the email is successfully sent, but not when the email doesn't (e.g., when a field is left blank, etc). You can see for yourself here. Also below are the codes:
http://www.matthewruddy.com/demo/?page_id=719
And the PHP :
From = $email;
$mail->FromName = $name;
$mail->Subject = "Website Contact Form";
$mail->AddAddress($site_owners_email, $site_owners_name);
$mail->Body = $comments;
$mail->Send();
?>