I am trying to loop through a set of elements and get their data-color attribute based on which index they have. However, it tell me that item.data is undefined. What is the proper way to do this?I am trying to loop through a set of elements a
I am trying to loop through a set of elements and get their data-color attribute based on which index they have. However, it tell me that item.data is undefined. What is the proper way to do this?I am trying to loop through a set of elements a