I have some code:
<div class="product-images hide" data-color="Red">…</div>
<div class="product-images hide" data-color="Blue">…</div>
<div class="product-images hide" data-color="Green">…</div>
How do I get all the data-color values into an array that I can compare against?
Suppose the Active Color is Red, then the script would say if active.value == data-color, remove class "hide"