I am currently learning how to make a table from an array, but I have the problem when I get the info from the array, it only comes through document.write
var a1=[1,2,3,4,5];
var a2=[1,2,3,4,5];
var a3=[1,2,3,4,5];
var all= [a1,a2,a3];
for (row=0; row<all.length; row++) {
for(col=0; col<all[row].length; col++){
document.write(all[row][col] + ";" )
}
document.write("<br>"); }
but when I get the info / data from the array in a certain ID it doesn't work document.getElementById
var a1=[1,2,3,4,5];
var a2=[1,2,3,4,5];
var a3=[1,2,3,4,5];
var all= [a1,a2,a3];
for (row=0; row<all.length; row++) {
for(col=0; col<all[row].length; col++){
document.getElementById("show").innerHTML=all[row][col] + ";"
}
document.getElementById("show").innerHTML="<br>"; }