EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 24, 2024, 11:31:55 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
General Discussion
>
Submit ajax form changes only
Pages: [
1
]
« previous
next »
Print
Author
Topic: Submit ajax form changes only (Read 5261 times)
romach
Newbie
Posts: 6
Submit ajax form changes only
«
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
Re: Submit ajax form changes only
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...