I’m trying to do a tab content example but the content doesn’t seen.
my code
that’s what i’m trying to do.
sometimes this errors are difficult to find;
use DevTools
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 Thank you.
1 Like
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.