I use this code for my form
var formData = $("#form").serializeArray();
now I want to push an array into formData variable like this
[{"name":"xxxx"},{"name":"xxxx"}]
or push the array to object of the formData
Update: I want to send the data via ajax to server
any solution?
Very well I answer my question, forget about the serializeArray() so
the result is:
then send formData via ajax, it's easy, isn't it?