tr deleteCell() method
tr object
Definition and Usage
The deleteCell() method is used to delete a cell (element) in a table row.
Syntax
trObject.deleteCell(
index
)
| Value | Description |
|---|---|
| index |
The parameter index is the position of the cell to be deleted within the row. This method deletes the cell at the specified position in the table row. |
Browser support





All major browsers support the deleteCell() method
Example
Example
The example below deletes a cell from a row:
| First cell | Second cell | Third cell |
Try it »
tr object