I want to get each cell value from an HTML table using JavaScript when pressing submit button.
How to get HTML table cell values?
To get the text from this cell-
some text
You can use this -
var Row = document.getElementById("somerow"); var Cells = Row.getElementsByTagName("td"); alert(Cells[0].innerText);