how can i get the parameters of any form being submitted with method=post before it's submitted using javascript(preferably jQuery). What i am trying to do is get the post parameters and submit it to an alternate loacation. i was using
$('form').submit(function() {
alert('action= ' + $(this).attr("action"));
alert('serialized string' + $(this).serialize());
return false;
});
but it works only with get request i want to extract the parameters from the post requests too .
serializewith forms that POST all the time. Perhaps you have something else that's going wrong?