Home > Web Front-end > JS Tutorial > body text

How to read the value of html5 localstorage using jquery_jquery

WBOY
Release: 2016-05-16 17:44:39
Original
936 people have browsed it

In HTML 5, localstorage is a good thing. In browsers that support localstorage, the input of the user form can be persisted. Even if the browser is closed and the browser is reopened next time, the value can be read. The following is The example shown is to use jquery to read the value of localstorage every time the form is loaded, and to clear the value every time the form is submitted
The first is a form :

Copy code The code is as follows:





HTML5 Local Storage Example





HTML5 Local Storage Example




Inquiry Form