+ 3
Here's a solution: https://code.sololearn.com/WBhTCSRofRoA/?ref=app I used the parent element of the clone to change the background of each child nodes. Another solution for that is by adding class name to each child node instead of adding style directly in js incase you want to add additional styles to the clones.
19th Feb 2018, 6:13 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar