JQuery Form submission plug-in ----- application of ajaxSubmit (), submit submits form
The Form Plugin API provides many useful methods for you to easily process the data and Form submission processes in the Form.
Test Environment: A web project deployed in Tomcat.
I. Introduction to ajaxSubmit ()
Submit the form in AJAX mode immediately. The most common usage is to call the form when the user submits the form action.
ajaxForm
Zero or one parameter is required. A unique parameter can be a callback function or an optional parameter object.
Can be called in a chain: Yes.
Ii. Introduce dependent js
<script src="jquery-1.3.1.js" type="text/javascript"></script> <script src="jquery.form.js" type="text/javascript"></script>
Network Disk download: https://yunpan.cn/crjzfmXqaTu9e access password e3bc
3. Compile the page
<H3> Demo 2: Use of the form plug-in --- ajaxSubmit ().
5. Detailed code
<! Doctype html public "-// W3C // dtd html 4.01 Transitional // EN">
6. The results are as follows: