+ 6
Why isn't this working?
Hello, I have a problem here. Open the sidenav and click on electronics. The .active is supposed to be added and retained. But when the sidenav is closed and opened again the class is removed. What is wrong? Thanks in advance Evans https://code.sololearn.com/WQ383vPhQOMw/?ref=app
5 Answers
+ 3
Evans
You forgot to put the # before sidenavLink, by concatenation or template strings.
+ 1
Evans you're welcome
+ 1
https://code.sololearn.com/WC8NpMgM3Rl5/#css
check my code for best illastration.
0
The class is called .active
sidenavLink is the id of electronics
0
ODLNT thanks