I need my product section to display the correct color when I click the associated color button. (Blue button displays blue product).BUT When I click on a different color, I need the previous color to disappear with the new color in its place. What is the best way to do this?
- I tried to: Set an interaction to one color to display block and all the other colors to display none. But doing that for every color seems unnecessary, Does anyone have a better way???