Тупой вопрос:
$(".payment-form").submit(function (e) {
e.preventDefault();
//какие то действия
$(this).submit();
});
Приводит к ошибке в консоли... Подскажите, что не так ? Форма нормальная.
Ошибка:
jquery-1.8.3.js:3937 Uncaught RangeError: Maximum call stack size exceeded
at String.replace (<anonymous>)
at Function.Sizzle [as find] (http://code.jquery.com/jquery-1.8.3.js:3937:26)
at init.find (http://code.jquery.com/jquery-1.8.3.js:5385:11)
at init (http://code.jquery.com/jquery-1.8.3.js:163:38)
at jQuery (http://code.jquery.com/jquery-1.8.3.js:44:10)
at HTMLFormElement.<anonymous> (file:///C:/Users/hp/Desktop/1%20(2).html:39:20)
at HTMLFormElement.dispatch (http://code.jquery.com/jquery-1.8.3.js:3058:9)
at HTMLFormElement.eventHandle (http://code.jquery.com/jquery-1.8.3.js:2676:28)
at Object.trigger (http://code.jquery.com/jquery-1.8.3.js:2941:12)
at HTMLFormElement.<anonymous> (http://code.jquery.com/jquery-1.8.3.js:3599:17)
e.preventDefault();
), либо отправляйте данные Ajax-ом.$(this).submit();
нужно убрать в обоих случаях.