EasyUI Forum
May 24, 2024, 11:31:55 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: Submit ajax form changes only  (Read 5261 times)
romach
Newbie
*
Posts: 6


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


View Profile Email
« Reply #1 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);
}
})
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!