Table cells don't have values, only input elements do. You need to access the element within the table cell.
Use:
tbl.rows[i].cells[j].getElementsByTagName("input")[0].value
DEMO