0
var myarray=new Array(4)
for (i=3; i <7; i++) myarray[i]=new Array(8);  

for (i=3;i<7;i++) {
	for (j=1;j<9;j++) {
		if (document.getElementById('mytable').rows[i].cells[j]!=null) {
myarray[i][j]=document.getElementsById('mytable').rows[i].cells[j].innerHTML;}
		else myarray[i][j]=0;

	}
}

Here is my code and i want to check if the cell exist and if it is true to take the content of the cell. But it gives me an error in the 6 line(which i believe is wrong):

Message: Object doesn't support this property or method

Edited by theheretic1984: n/a

2
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by theheretic1984
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.