I have already read a lot of topics but no result. I want to submit two forms with 1 button to php script.
$(document).ready(function() {
$("#subbut").click(function() {
$.post($("#firstform").attr("action"), $("#firstform").serialize()+$("#secondform").serialize(),
function() {
alert('Both forms submitted');
});
});
});
I tried this but it submit only 1 form. Where is the problem?