Submit differs from button difference submission

Source: Internet
Author: User

Submitting forms uses submit to automatically submit form data, if you want to change the submit button to a button when you use jquery's form form plug-in ("#表单id"). Ajaxsubmit ({}); If the button or the use of submit is equivalent to the submission of two form the first time is the click button when the second is jquery ajaxsubmit (), when using AJAX submission when the background will not be able to get the data normal or data can be taken;

Submit data at Submission

Autocommit is equivalent to clicking the Submit button when you submit a single submission without us submitting the form manually;

Button commits data

Way One: Ajax

You can manually use JS fetch and then AJAX to send data or jquery form plug-ins (form plug-ins are also AJAX submissions);

Mode two: normal submission

Gets the corresponding form data when the button is triggered using JS's summit method or onsubmit event;

Submit differs from button difference submission

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.