Use $ (# form). submit () in jquery to overwrite and analyze the cause of invalid submission form. _ jquery

Source: Internet
Author: User
Jqeury's validationEngine performs ajax verification. When the last field in the form needs ajax verification, it does not work when you click Enter to submit the form after the field is entered, next we will introduce you to the solution. If you are interested, refer to the following questions:
Recently, jqeury's validationEngine was used for ajax verification. When the last field in the form needs to be used for ajax verification, it does not work when you press enter to submit the form after the field is entered, you must click the submit button again.

Analysis:
After tracing its source code, it is found that the form is submitted again after ajax verification is successful, but the form cannot be actually submitted.

Cause:
This is strange because my button for submitting a form is named submit. Just get rid of it.

The Code is as follows:


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.