Reputation: 31
I have a html form which are paginated.I need javascipt that can save the history of value of input, user click next pages and when return to previous page can see what was wrote.
Upvotes: 2
Views: 2023
Reputation: 941
Use Cookies method in javascript to store text box value. Keep a JavaScript variables value after a page refresh? this page gives more information about cookies.
Upvotes: 1
Reputation: 9929
You have several options. You can for example use local storage.
But since that is not supported in older browsers, you can fall back to a cookie mechanism for example. Check out jstorage.info for a library that handles this fallback behaviour for you.
Upvotes: 5