0

помогите пожалуйста как правильно изменить alert на header("location: /websites/order/order-access.php");

$(document).ready(function() {

	//E-mail Ajax Send
	$("#order-form").submit(function() { //Change
		var th = $(this);
		$.ajax({
			type: "POST",
			url: "../php/order-mail.php", //Change
			data: th.serialize()
		}).done(function() {
			alert("Вы успешно отправили заявку");
			setTimeout(function() {
				// Done Functions
				th.trigger("reset");
			}, 1000);
		});
		return false;
	});
});

1 ответ 1

0

header("*");

Это из PHP?

window.location.replace("http://stackoverflow.com");

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge you have read our privacy policy.