There is a form on ajaxForm. After receiving the answer, if the answer is equal to some value, I would output this answer with an alert, now I need to make another request instead of the output, but he does not want, that is, succes does not come back.
$(document).ready(function () { $("#orderform").ajaxForm({ success: contact_success }); }); function contact_success(responseText, statusText) { if (responseText == 'Ваш заказ отправлен.') { alert(responseText); document.location = '../zakaz-prinyat/'; } else { alert(responseText); } }
Instead of alert(responseText);
I want another ajax request .... But nothing happens, tell me.