Tuesday, 26 June 2018

How do I know that a form input has changed?

I have a form generated by <% Ajax.BeginForm() {} %> which contains a lot of inputs and texareas.

When an input value change, I need to know about it and mark the input and the form as "dirty". If the user tries to leave the page without saving, I will ask him or her to confirm abandoning changes.

Any suggestion to how this should be done?



from How do I know that a form input has changed?

No comments:

Post a Comment