-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
Description
I have a form that uses the multiselect as well as other text input fields. When I try to send to php using JQuery ajax request I'm only getting the last item in the multiselect. I know the values are stored on the var options, because I tested it with an alert. But how do I add it to the .home1 form to serialize and send over to php?
var options = validator.getFieldElements('product').val();
$.ajax({
type: "POST",
url: "process-step1.php",
data: $('.home1').serialize(),
success: function(msg){
document.location.href = 'form.php';
},
error: function(){
alert("error");
}
});//close ajax
Reactions are currently unavailable