I have a form which have multiple select dropdown name=select[], and this form is validate from Jquery Validation and after successful validation Submit handler call Ajax i want to send all form keys and values also include in array form , Here is My Code .
function:submitHandler
{
$.ajax({
url: "processo.php",
type: "POST",
data: new FormData(this),
cache: false,
processData:false,
success: function(data)
{
$('#loading').hide();
$("#message").html(data);
}
});
}
Now the when validation successfully done new FormData(this) not recognize form id.but when i put new Formdata($("#frmRegister")[0]) then its send variables to php but not array. How can i define form id in like new Formdata("#frmRegister").Remember please i also have mulitple select array in form .
function: submitHandler? Within the.validate()method, it should besubmitHandler: function(form) {...}. Show the rest of the relevant code in proper context.