I'm trying to populate a multidimensional array (array with array elements) via Javascript or jQuery... push()
is probably the wrong method to use, but I've tried a couple of others and I can't seem to get beyond single dimensional arrays. Here's the latest try so far - any advice or snippets on how I might be able to populate arrays per element of an existing global array appreciated!
<script>
var fred=[];
for(i=0;i<3;i++){
fred.push(['a',i]);
$("#disp").html(i);
}
alert(fred.toSource());
$("#disp").html(fred.toSource());
</script>
<div id="disp">abc</div>