Click on different cells to alert their index position:
The cellIndex property returns the position of a cell in the cells collection of a table row.
The cellIndex property is supported in all major browsers.
Return the cellIndex property:
Return Value: | A Number, representing the position of the cell in the cells collection of the table row |
---|
Return the index position of each cell in a table row: