Home  >  Article  >  Web Front-end  >  Analysis and solution of invalid reasons for using $(#form).submit() to rewrite the submission form in jquery_jquery

Analysis and solution of invalid reasons for using $(#form).submit() to rewrite the submission form in jquery_jquery

WBOY
WBOYOriginal
2016-05-16 17:39:391443browse

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.

Copy code The code is as follows:


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn