I am trying to work out how to get the value of table cell for each row using jQuery.
My table looks like this:
-
2020-11-22 15:26
a less-jquerish approach:
$('#mytable tr').each(function() {
if (!this.rowIndex) return; // skip first row
var customerId = this.cells[0].innerHTML;
});
this can obviously be changed to work with not-the-first cells.