What is the proper syntax for for defining a multidimensional array in jQuery or Javascipt? I want to pass it to a php file through the $.post after it is defined properly. Do I need a nested map() function or something else like serialize? The arrays are all integers if that matters!
I have a bunch of text input boxes that all feed into a multidimensional array for processing in a PHP file:
<input type="text" size="4" value="" name="floor_areas[0][5]">
<input type="text" size="4" value="" name="floor_areas[1][5]">
<input type="text" size="4" value="" name="floor_areas[2][5]">
<input type="text" size="4" value="" name="floor_areas[0][4]">
<input type="text" size="4" value="" name="floor_areas[1][4]">
<input type="text" size="4" value="" name="floor_areas[2][4]">
etc...
I used this code to get single dimensioned array:
var main_occupancy = $('input[name="main_occupancy\\[\\]"]:checked').
map(function(i, elem) { return $(this).val(); }).get();
Thanks for any help!

