I have multiple forms on my page. When I click the forms submit button, I want to send the form value of only that form through ajax. Here is what I have. The first form w
var form = $('#form1', '#form2').serialize();
$.ajax({
type: "POST",
url: "approve_test.php",
data: form,
success: function(data) {
alert(data); // show response from the php script.
}
});