EasyUI Forum
April 28, 2024, 08:00:40 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to check the form is dirty or Not?  (Read 3617 times)
Aod47
Jr. Member
**
Posts: 81


View Profile
« 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.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 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.
Logged
Aod47
Jr. Member
**
Posts: 81


View Profile
« Reply #2 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.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!