Home > Article > Web Front-end > Analysis and solution of invalid reasons for using $(#form).submit() to rewrite the submission form in jquery_jquery
Problem:
I recently used jqeury's validationEngine for ajax verification. When the last field in the form needs to be verified by ajax, it does not work when clicking Enter to submit the form after entering the field. You must re- Press/click the submit button once.
Analysis:
By tracing its source code, we finally found that the form was submitted again after the ajax verification was successful, but the form still could not be actually submitted.
Reason:
It’s weird because the name of my submit form button is submit. Just change it.