Which one are you trying to reproduce? This one?
that’s what i’m trying to do.
sometimes this errors are difficult to find;
document.getElementById(city).display = 'block';
You have to do:
document.getElementById(city).style.display = 'block';
Keep in mind to reset
otherwise your button color will not return to default
I checked the devtools but it didn’t return any issue and I set a new variable for button’s loop. Then it’s worked Thank you.