Javascript-Form Wizard function in the website

Source: Internet
Author: User
For example, this is the Form Wizard function. After the content of each wizard module is entered correctly, how can this function be automatically saved? What do you think is the logic of this Form Wizard, little is that cainiao is very knowledgeable.

For example, this is the Form Wizard function. After the content of each wizard module is entered correctly, how can this function be automatically saved? What do you think is the logic of this Form Wizard, little is that cainiao is very knowledgeable.

Reply content:

For example, this is the Form Wizard function. After the content of each wizard module is entered correctly, how can this function be automatically saved? What do you think is the logic of this Form Wizard, little is that cainiao is very knowledgeable.

Automatic storage: you can confirm that the data is stored locally after the user input is complete.

You can bind an onchange event to each field to trigger the save draft, or execute the save draft at a fixed interval. You can only save the draft automatically. It is not possible to submit the form automatically. All the verifications meet the requirements of the non-certifiers and the content does not need to be modified.

You can use either of the following methods:
1. Local localstorage, but this method is not valid for earlier ie versions;
2. The server performs session storage. Each step requests a network, and the storage server can

Html5 localstorage

Related Article

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.