EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: Aod47 on May 29, 2020, 11:14:48 PM



Title: How to check the form is dirty or Not?
Post by: Aod47 on May 29, 2020, 11:14:48 PM
I want to submit a form if form is dirty.
How to check it.

Could you please advice?
Thank you.


Title: Re: How to check the form is dirty or Not?
Post by: jarry on May 30, 2020, 07:04:43 AM
Normally, you can listen to the 'onChange' event. If this event fires, the fields may be modified and you should submit the form.


Title: Re: How to check the form is dirty or Not?
Post by: Aod47 on June 02, 2020, 08:33:51 PM
In some situation, user changed something on text field and then unchanged but onChange of textfield or combobox event has occurred already. So the form should not dirty.