How to get all value from my tr
Hi,
I need your help to get all data from my table
I've tryed this:
var table = document.getElementById('miaTab');
var rowLength = table.rows.length;
for(var i=2; i<rowLength; i+=1)
{
var row = table.rows[i];
var cellLength = row.cells.length;
for(var y=0; y<cellLength; y+=1)
{
var valore = row.cells[y];
alert("val ->"+valore)
}
}
the alert shows: val ->[object HTMLTableCellElement]
Can someone helps me, please
Thanks, Tegatti