jquery-form/form

Cannot read property 'success' of undefined (with jquery 4.2.2)

bnymn opened this issue · 0 comments

bnymn commented

Description:

I was trying a simple example from the documentation. I think it is related with the jquery version. When I use older version, it works.

Expected Behavior:

I was expecting form to be submitted.

Actual behavior:

I got the following error:

jquery.form.js:171 Uncaught TypeError: Cannot read property 'success' of undefined
    at r.fn.init.e.fn.ajaxSubmit (jquery.form.js:171)
    at HTMLFormElement.t (jquery.form.js:1026)
    at HTMLFormElement.dispatch (jquery-3.2.1.slim.min.js:3)
    at HTMLFormElement.q.handle (jquery-3.2.1.slim.min.js:3)

Versions:

LoadJSON:
jQuery: 4.2.2
Browsers: Chrome Version 61.0.3163.100 (Official Build) (64-bit)

Demonstration

https://jsfiddle.net/inanbunyamin90/bados2ba/4/

Steps to reproduce:

Just see the demonstration.