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•2y ago
Message Not Public
Sign In & Join Server To View
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
I don't know to ask exactly :( Like links on the navbar, whenever clicked it should get the active class
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
@infanttree are you free enough to see my screen in vc?
idk to explain :(
Unknown User•2y ago
Message Not Public
Sign In & Join Server To View
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
maybe something like this https://codepen.io/MannixMD/pen/rNZjMPv