Checking the data-attributes on button press.

Checking the data-attributes on button press.

Hi, if I have a list view of four items all with a data-attribute - in this case data-color - how can I search through it to see if the value equals '-1'.  If it does either enable or disable a confirm button.


Thanks.