JSFiddle - React, Tailwind, and code Playground

by Vaniljs

HTML

<script src="http://code.jquery.com/jquery-1.12.4.min.js"></script>
 <form>
       <input type="hidden" name="Форма" value="Оставьте заявку!">
       <input type="text" name="Имя">
       <input type="text" id="phone" name="Телефон" required>				
       <button type="submit">Отправить</button>
    </form>

JavaScript

$(document).ready(function() {

	//E-mail Ajax Send
	$("form").submit(function() { //Change
		var th = $(this);
		$.ajax({
			type: "POST",
			url: "mail.php", //Change
			data: th.serialize()
		}).done(function() {
			alert("Thank you!");
			setTimeout(function() {
				// Done Functions
				th.trigger("reset");
			}, 1000);
		});
		return false;
	});

});