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
More Related Contents:
- Is it possible to append to innerHTML without destroying descendants’ event listeners?
- Executing elements inserted with .innerHTML
- Show/hide ‘div’ using JavaScript
- Difference between innerText, innerHTML and value?
- Why is “element.innerHTML+=” bad code?
- How to replace innerHTML of a div using jQuery?
- Advantages of createElement over innerHTML?
- Can scripts be inserted with innerHTML?
- nodeValue vs innerHTML and textContent. How to choose? [duplicate]
- Javascript – Append HTML to container element without innerHTML
- JavaScript get TextArea input via .value or .innerHTML?
- React.js: Set innerHTML vs dangerouslySetInnerHTML
- Cannot set property ‘innerHTML’ of null
- Add/remove HTML inside div using JavaScript
- Change label text using JavaScript
- Setting innerHTML: Why won’t it update the DOM?
- Javascript Iframe innerHTML
- Add inline style using Javascript
- Javascript – innerHTML not working with HTML select menus
- Append HTML to container element without innerHTML
- setting innerHTML with a script inside [duplicate]
- JQuery html() vs. innerHTML
- Alternative for innerHTML?
- reading innerHTML of HTML form with VALUE attribute (& its value) of INPUT tags
- It says that TypeError: document.getElementById(…) is null [duplicate]
- Remove all content using pure JS
- Uncaught Typeerror: cannot read property ‘innerHTML’ of null
- innerHTML removes attribute quotes in Internet Explorer
- addEventListener gone after appending innerHTML
- Node.js Port 3000 already in use but it actually isn’t?