#Toggle multiple class

1 messages ยท Page 1 of 1 (latest)

charred patrol
#

Hi, everyone. I want to click on the arrow and show the answer but It's only working on the first question. I think maybe is because I have to run a for loop since the class is repeated? But I'm not sure if that's the reason and how to solve it. Can someone help me?

Thanks ๐Ÿ™‚

low jewel
thorny pagoda
#

You appear to be new to javascript and still in the learning process. You should look at Geoffery's solution, which is quite simple, but for your learning, I solved this problem with js by explaining each step in the js file below.

charred patrol
# thorny pagoda You appear to be new to javascript and still in the learning process. You should...

Hi @thorny pagoda . Thanks so much for all your explanation. Yes, I'm new to JS. I finished up to module 5 of scrimba and decided to do a "complete" project to know what level I'm at, if I'm really learning because I was stuck in tutorial hell. But I understood that I'm really going to need to review all the JavaScript modules. I'm definitely struggling with JS ๐Ÿ˜ฆ

charred patrol