Make email form disappear after email is sent - jQuery

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(); ?>
" . $error['name'] . " \n" : null; $response .= (isset($error['email'])) ? "
  • " . $error['email'] . "
  • \n" : null; $response .= (isset($error['comments'])) ? "
  • " . $error['comments'] . "
  • " : null; echo '
      '. $response .'
    '; } # end if there was an error sending ?> Can anyone help?

    以上就是Make email form disappear after email is sent - jQuery的详细内容,更多请关注web前端其它相关文章!

    赞(0) 打赏
    未经允许不得转载:web前端首页 » jQuery 答疑

    评论 抢沙发

    • 昵称 (必填)
    • 邮箱 (必填)
    • 网址

    前端开发相关广告投放 更专业 更精准

    联系我们

    觉得文章有用就打赏一下文章作者

    支付宝扫一扫打赏

    微信扫一扫打赏