Find and return the position in a list by data-attribute.

Find and return the position in a list by data-attribute.

Hi, is it possible to search through a list and return the place in the list is resides;

For example:


Search through the resultsBox list and look for the data-color="blue" if it exists return the eq() where it resides - in this case it would be 2.

Thanks.