Hi,
I am not sure if what I am trying to do is possible with JS but I hope it is. I have an array like the following in PHP and I am trying to construct it in JavaScript.
<?php
$myArray = array(
'part1' => array('id' => 75, 'name' => 'blue_part'),
'part2' => array('id' => 14, 'name' => 'green_part'),
'part3' => array('id' => 40, 'name' => 'red_part'),
);
?>
I know how to create a basic array in JS like the following:
var myArray = new Array('part1', 'part2', 'part3');
How can I add the multidimensionality to the JS array?
Thanks for all ideas.