Javascript – Writing Multidemisional Array jQuery

arraysjavascriptmultidimensional-array

I would like to ask on how to write Multidimensional Array in jQuery ?

its oky if its in basic syntax, im still new to jQuery.

Best Answer

Its Javascript, not JQuery that handles the arrays, so what you really want is a tutorial on multidimensional arrays in Javascript.

Here is a good one.

Basically you define one array, then reference it inside another array. For example:

var columns = new Array(3);
var rows = new Array(4);
rows[0] = columns;

This can then be accessed as follows:

rows[0][0]