title: How to access value in multidimensional array?
body: <p>I have the following code:</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;div style="background-color: lightblue;" onClick="alert(myArray[0][1])"&gt;
  this is a div
  &lt;/div&gt;
  
  &lt;script type="text/javascript"&gt;
  var myArray = new Array();
  myArray[0][0] = 0;
  myArray[0][1] = 00012;
  myArray[0][2] = 00006;
  myArray[1][0] = 1;
  myArray[1][1] = 00004;
  myArray[1][2] = 00001;
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>When I click on the div, nothing happens; there's no alert. When I change the inside of alert to a string, such as 'test', however, then the alert box does come up.</p>
  
  <p>What am I doing wrong? How can I get the value of an item in a multidimensional array?</p>
  
  <p>Thanks!</p>