cellIndex property (td, th)
Returns a zero-based integer that indicates the position of a cell (td or th) in the cells collection of a table row.
You can find the related objects in the Supported by objects section below.
This property is read-only.
Zero-based integer that retrieves the position of the td element.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the cellIndex property:
Did you find this example helpful?
User Contributed Comments