EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: devnull on October 03, 2012, 01:32:38 AM



Title: Appending form data on submit.
Post by: devnull on October 03, 2012, 01:32:38 AM
Hi;

During the form submit process, I want to append data to the form being submitted but can't seem to figure it out:

Code:
function xxx(userid){
$('#'+fid).form('submit',{ 
url:url,
onSubmit: function(data){
data += "userid="+userid;
},
success:function(data){ 

});
}

so as well as the <INPUT> element values contained in the form, I want to append one or more additional data items.

Thanks

PeterC