Returning the data value on a list view item.

Returning the data value on a list view item.

I am a little perplexed on how I would search through and return the index on a listview item.


When using the button I want to locate and return the index of the colour (data-color) green.

Thanks in advance.