How can I merge a serialize date with an array with jquery for ajax post?
For instance,
var array = { name: "John", time: "2pm" };
$.post( "page.php", $("form").serialize() + array);
I get this,
Array
(
[url] => another test
[page_id] => 140
[method] => update[object Object]
)
What can I do so I can merge them and get this as my result below?
Array
(
[url] => another test
[page_id] => 140
[method] => update
[name] => John
[time] => 2pm
)