Код: Выделить всё
$("#addNewAddressContainer").on("submit", "form", function (e) {
e.preventDefault();
var $form = $(this);
var formData = $form.serialize();
$.ajax({
url: $form.attr("action"),
type: $form.attr("method"),
data: formData,
success: function (response) {
if (response.success) {
ShowMessage(response.message); // From My ShowMessage Method
$form.hide();
$('html, body').animate({ scrollTop: 0 }, 'fast');
} else {
ShowMessage(response.message);
}
},
error: function () {
ShowMessage('Error occurred while submitting the form.');
}
});
});
Код: Выделить всё
$.ajax({
url: "/UserPanel/CheckOut",
как мне вернуться в «Мое представление» и обновить этот шаг
Представление корзины — это пошаговая форма< /п>
Подробнее здесь: https://stackoverflow.com/questions/786 ... a-function
Мобильная версия