EasyUI Forum

General Category => General Discussion => Topic started by: romach on February 26, 2016, 03:34:56 AM



Title: Submit ajax form changes only
Post by: romach on February 26, 2016, 03:34:56 AM
Hello, All!

I have a big form that wrapped by `.form` with many fields . I want to post changed fields only. There is no standard method for that. I cannot modify form data for submit method.

Do you have any ideas how to make it?


Title: Re: Submit ajax form changes only
Post by: jarry on February 26, 2016, 08:56:32 AM
Use the 'onChange' event of form to retrieve all the changed field objects. Please try this code:
Code:
$('#ff').form({
ajax: true,
onChange: function(target){
console.log(target);
}
})