title: how to form an array of arrays in jQuery
body: <p>How to make an array of arrays like</p>
  <pre><code>{ [1,2,3],[2,3,4],[2,34,55] } 
  </code></pre>
  <p>in jQuery ?</p>
  <pre><code>    $(document).ready(function() {
      var row = 4;
      var items = [];
      var total = [];
      $('#test tr:eq(' + row + ') td').each(function(colindex, col) {
          //alert(colindex);
          t = $(this).contents();
          items.length = 0;
          $.each(t, function(i, val) {
              if (val.tagName != 'BR') {
                  if (val.innerHTML == undefined) {
                      items.push(val.data);
                  }
                  else
                      items.push(val.innerHTML);
              }
              //alert(items.toString());
          });
          total.push(items);
      });
      alert(total.toString());
  });
  </code></pre>
  <p>iIn the above code I'm trying to create a array <code>Total()</code> with the elements as arrays (<code>item()</code>), but how ever the <code>Total()</code> array has only one object that too the last <code>item()</code> array.</p>