Skip to content
Advertisement

Copy active class from one div to another div with a corresponding data attribute value

Is there a way to toggle the class selected that is currently set on the button in .ProductItem-gallery-slides to the corresponding button in .ProductItem-gallery-thumbnails with the same data attribute?

JavaScript

Advertisement

Answer

Whilst I agree with Rory – I suspect there is no example code so I hope the following is what you’re after:

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement