0

Есть готовый php. Нужно отправлять запрос через ajax jquery-ский:

$.ajax({
        type: 'POST',
        url: "../order_form.php", 
        cache: false,
        beforeSend: function() {
            $('.form input:nth-child(4)').prop('disabled', true);
        },
        success: function() {
            $('.form input:not(.form input:nth-child(4))').trigger('reset');
            $('.form input:nth-child(4)').prop('disabled', false);
            alert('success');
        }
    });

В итоге пишет succes, но форма не видна в бд

5

1 ответ 1

0

Пропишите ответ success: function(response), добавив response в качестве параметра. И в нем должен храниться ответ от сервера.

Ваш ответ

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

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.