Home >Web Front-end >JS Tutorial >Jquery.Form A simple example of asynchronous form submission_jquery

Jquery.Form A simple example of asynchronous form submission_jquery

WBOY
WBOYOriginal
2016-05-16 16:57:341195browse

http://www.vaikan.com/docs/jquery.form.plugin/jquery.form.plugin.html#

1. Write a form in your page. A normal form, no special markup is required:

Copy code The code is as follows:



Name:
Password:






without Jquery.Form component When submitting the form, the page will enter blocking mode, waiting for a response from the server.

2. Introduce jQuery and Form Plugin Javascript script files and add a few simple codes to allow the page to initialize the form after the DOM is loaded: