Reputation: 11
I have a form to show the data with several buttons like create, edit, copy, delete...... many more depending on the context. For the most of the actions like create, edit, copy.... there are two buttons, save, and cancel. I control the buttons' show/hide by the javascript.
After going into one of the action (such as edit, copy, create etc) if user presses the cancel button, I need bring the user back to there it was started. What is the best way yo save the previous form data so that I don't have to make an AJAX call to the server to fetch the data.
Upvotes: 0
Views: 297
Reputation: 79
You can use localStorage of the browser. Window.localStorage
Upvotes: 2