Help wanted for Events 3 skill test

Hi,
I can’t seem to find out how to access and use the data-color attribute in this skill test. ttps://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Test_your_skills:_Events
I have tried several things. My (latest) code is at: https://jsfiddle.net/kf_km/5vrut3p8/
Thanks a lot for your help.

Karen Kramer

Hello @kfkm

use the getAttribute() instead of queryselector

e.target.getAttribute(‘data-color’)

hope that help
have a nice day

Thank you, that solves it!

you welcome @kfkm :slight_smile: