Edit This Code:
See Result »
Click on each th element to alert its index position in the table row.
Click to show cellIndex
Click to show cellIndex
Click to show cellIndex
Click to show cellIndex
Result: