submitting form and variables together through jquery
问题 I'm using 2 types of submit. There is $.post $.post('servers_side.php', { var1: var1, var2:var2}, function(result) { some code... }); which sends separate variables to server side script. And there is AjaxSubmit plugin which submits the whole form $('#form').ajaxSubmit({success: function(result) { some code... } }); But now I have the following task let's say I have a form and a few variables which I must submit at the same time. So Is that possible to submit form + some variables together ?