Problem on making class active on click

https://codepen.io/GiteenShiro/pen/dyqOgjp pen of my code. When I hover on the image, a dropdown kinda thing pops-up. There are themes in it, when I click one of it, there is no active class in that element. Why does that happen
8 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Coder_Carl
Coder_Carl2y ago
here i've fixed it slightly you just need to iterate over all colors to remove all of the actives before setting one https://codepen.io/CA-Carl/pen/bGxgbLL?editors=1111
Melodium
MelodiumOP2y ago
I don't know to ask exactly :( Like links on the navbar, whenever clicked it should get the active class
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Melodium
MelodiumOP2y ago
@infanttree are you free enough to see my screen in vc? idk to explain :(
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Melodium
MelodiumOP2y ago
when i click on a theme, it should get active class and there should be border for it and when i refresh, the same theme selected should have active class instead of default one it kinda works thanks
Want results from more Discord servers?
Add your server