javascript - Check if web form values have changed -


I have a multi-step form and the user can navigate to any page to modify or add information . A menu that shows the current progress, allows the user to take any steps, and navigate to any complete or pending step.

Despite a large button "Save and Continue", some users click on this menu to navigate forward I have to check - if the values ​​have changed in a form and ask: "Save changes?" Yes / No "

What is the best way (with minimum client-side javascript code) I suggest you to check that the values ​​of the form have changed?

Edited a while later:

I forgot to tell that multi-level step uses postback between steps.

The jQuery "Dirty Form" plugin can help you:


Comments