I have a model in which I fill in the fields of a form (use asp.net mvc and the view is typed), that is, I load the fields of this form according to the data of the database for the user to change on the screen
What I want to do is a "undo" button that resets to the initial state of the data that came from the database, not simply using this.meuform.reset () at the click of the button.I believe that it should be done in form onLoad () a way to save the current elements of the form and when clicked on the button, simply play again on the elements, these elements saved ...
I prefer pure Javascript.