1
For this particular instance, you can send it together like:
$('#save').on('click', function(event){
event.preventDefault();
var form = $('<form method="post"></form>');
$(form).append($('#field1'));
$(form).append($('#field2'));
$(form).appendTo('body');
$(form).submit();
});
0
If both forms have the same action, can’t you wrap all fields within one <form>
tag?
This way, you submit fields from both forms at the same time, without the need of JS as proposed in another answer.
- [Answer]-Assigning a value to a tuple
- [Answer]-Deploying a Django site with sensitive code on a host
Source:stackexchange.com