//E-mail Ajax Send
$("#callback").submit(function() {
var th = $(this);
$.ajax({
type: "POST",
url: "mail.php",
data: th.serialize()
}).done(function() {
$(th).find(".success").addClass("active").css("display", "flex").hide().fadeIn();
setTimeout(function() {
$(th).find(".success").removeClass("active").fadeOut();
th.trigger("reset");
}, 4000);
});
return false;
});
<form class="form-lease" id="callback">
<div class="success"><span>Спасибо за заявку!</span></div>
<!-- Hidden Required Fields -->
<input type="hidden" name="project_name" value="site">
<input type="hidden" name="admin_email" value="admin@gmail.com">
<input type="hidden" name="form_subject" value="description">
<!-- END Hidden Required Fields -->
<div class="row">
<div class="col-sm-6 wow slideInLeft">
<label>
<span>Ваше имя</span>
<input type="text" name="Имя" required><br>
</label>
<label>
<span>Телефон</span>
<input type="text" name="Телефон" required>
</label>
<label>
<span>E-mail</span>
<input type="email" name="E-mail" required>
</label>
</div>
<div class="col-sm-6 wow slideInRight">
<label>
<span>Сообщение</span>
<textarea rows="5" name="Сообщение"></textarea>
</label>
<button class="btn-sub" type="submit">Отправить</button>
</div>
</div>
</form>