I have an array of input text
<input type="text" name="highlight" value="1"/>
<input type="text" name="highlight" value="2"/>
I used ajax and FormData() to submit it to the server.
var form = $(this);
var formData = new FormData(form[0]);
var target = form.attr('action');
$.ajax({
url: target,
type: 'post',
data: formData,
processData: false,
contentType: false,
})
.done(function(data){
console.log(data.message);
});
**Expected Server result:**highlight=['1','2']
**Actual Server result:**highlight=2
Im using nodejs as server