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