I have a form with multiselect dropdown,on submit the values are passed through ajax by Seralize ,but only one value of multiselect dropdown is passed where i have selected more option on that dropdown.
var formdata= $("#form").serialize();
$.ajax(
{
url:base_url+"index.php/model/employee",
data: "employeedata="+employeeformdata,
success: function(msg)
{
//success message
},
});
I have tried to get the values manually by mval=$('#multi').val();
and appended it to url,since i am having a dynamic form i cant specify the id of multiselect dropdown and one form can have many multiselect dropdowns,Is there any method to pass the values on serialize/serializeArray ?