EasyUI Forum
May 10, 2024, 03:14:04 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Appending form data on submit.  (Read 7640 times)
devnull
Sr. Member
****
Posts: 431


View Profile
« 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
« Last Edit: October 03, 2012, 01:40:25 AM by devnull » Logged

-- Licensed User --
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!