Get a particular cell value from HTML table using JavaScript

前端 未结 10 977
暖寄归人
暖寄归人 2020-12-15 06:09

I want to get each cell value from an HTML table using JavaScript when pressing submit button.

How to get HTML table cell values?

10条回答
  •  庸人自扰
    2020-12-15 06:25

    You can also use the DOM way to obtain the cell value: Cells[0].firstChild.data

    Read more on that in my post at http://js-code.blogspot.com/2009/03/how-to-change-html-table-cell-value.html

提交回复
热议问题