I'm creating a system for work, and need to pass both HTML form contents and a two dimensional array to PHP via ajax. I'm not sure if I'm going along the right lines with the below, or if this is possible:
var myArray = [][];
$.ajax({
type : 'POST',
url : 'url',
data : $('#form').serialize() + myArray.serialize();
}
Many thanks in advance for any advice!