JavaScript cells Property Tutorial

In this section, we will learn that the cells property is and how to use it in JavaScript.

What is JavaScript cells Property?

The JavaScript cells property is used to get the list of cells in a table row.

Basically, if you have a reference to a table row and want to get access to the entire cells of that row, we can use this property.

This property returns a collection object that contains the entire cells of the target row.

Note: this property is read-only and so we can’t assign a value to it.

Example: using JavaScript cells property

See the Pen using JavaScript cells property by Omid Dehghan (@odchan1) on CodePen.

Note: please check the rows property section if you’re not familiar with this property.

Facebook
Twitter
Pinterest
LinkedIn

Top Technologies