I didn't understand that why it isn't work, can you help?

I’m trying to do a tab content example but the content doesn’t seen.
my code

Hello @yasinkarax,

Which one are you trying to reproduce? This one?

that’s what i’m trying to do.

sometimes this errors are difficult to find;
use DevTools :laughing:
You did:
document.getElementById(city).display = 'block';
You have to do:
document.getElementById(city).style.display = 'block';

Keep in mind to reset i
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 :smiley: Thank you.

1 Like