| Author |
2 dimensional array
|
indu yeturu
Ranch Hand
Joined: Aug 27, 2008
Posts: 123
|
|
Am creating a simple dynamic table like this,
and I created dynamic 2 dimensional array because I need to push the elements of the above table into particular arrays based on the [row,column] indices.
For that my code is ::::
Here am trying to display the value of each element,but it displays as 'undefined'.... What is the way to print the values of elements here?
thanks
indu
>
|
thanks,
indu
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
You never assigned it a value so it is undefined. What would you expect it to alert?
Eric
|
 |
indu yeturu
Ranch Hand
Joined: Aug 27, 2008
Posts: 123
|
|
There am expecting the value of the cell[i][j] where
i = 0 to rowlength
j = points to columns in the table(name,columns) j=0 to no.elements in the table;
no.of elements in the table is elements
The sample HTML :::
Sothat I tried to alert the values of the elements which I entered at specific row,column locations
|
 |
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
|
|
And how are you sticking those values into the newly created arrays? You sample code shows nothing but creating arrays and alerting an empty cell.
Eric
|
 |
indu yeturu
Ranch Hand
Joined: Aug 27, 2008
Posts: 123
|
|
|
Thanks I got it..
|
 |
 |
|
|
subject: 2 dimensional array
|
|
|