find a value of table cell

Table cells don’t have values, only input elements do. You need to access the <input> element within the table cell.

Use:

tbl.rows[i].cells[j].getElementsByTagName("input")[0].value

DEMO

Leave a Comment