EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
March 29, 2024, 06:08:48 AM
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
>
EasyUI for jQuery
>
form onsubmit (param) clarification
Pages: [
1
]
« previous
next »
Print
Author
Topic: form onsubmit (param) clarification (Read 8244 times)
chrwei
Full Member
Posts: 219
form onsubmit (param) clarification
«
on:
August 22, 2013, 01:10:10 PM »
when using "onSubmit: function(param){" is param supposed to be pre-filled with the form data? the documentation doesn't say either way.
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: form onsubmit (param) clarification
«
Reply #1 on:
August 22, 2013, 06:53:18 PM »
Yes, you can append extra submitting parameters in 'onSubmit' event. The code below shows how to do this.
Code:
$('#ff').form('submit', {
url:...,
onSubmit: function(param){
param.p1 = 'value1';
param.p2 = 'value2';
}
});
Logged
chrwei
Full Member
Posts: 219
Re: form onsubmit (param) clarification
«
Reply #2 on:
August 23, 2013, 06:24:37 AM »
when I do param.text_box_name I get undefined.
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...