Manipulating Attributes -Data row

What is ‘data-row’ and ‘data-name’ in both the functions and how are they linked to each other?

They are just html attributes like class and id to store extra information in the html node. In the code you given data-name attribute is used assign a name to the tr element and data-index is used to give an index value.

You can get more information about data attribute here

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.