Q:

How can I send form values in jQuery submit without putting them in the form?

I have multiple forms on a page all with the same fields:
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="p3" value="2">
<input type="hidden" name="t3" value="D"> 

Only the submit buttons and form actions are different for each. Is there a way to send this data in a JQuery submit so that I don't have to copy it 8 times for each form?

A:

How about appending them to the form when a given form is being submitted?
$("form").on("submit", function(){
   $(this).append('<input type="hidden" name="cmd" value="_s-xclick">')
   $(this).append('<input type="hidden" name="p3" value="2">')
   $(this).append('<input type="hidden" name="t3" value="D">')
});

http://api.jquery.com/submit/
http://api.jquery.com/append/

