How to unselct other classes
https://code.sololearn.com/Wxsf3PWIRPZu/?ref=app In the above code, I tried to make the background colour black of the clicked div and at the same, I want to return the background colour of other divs to green. But in the code, when I clicks a div, it becomes black, but it remains black even after clicking other divs. Please tell me how to do such that other divs will become green again while clicking another div (same class) ? *Edit: For example: If I click Home, it will be black and others remain in that color (green). When I click another div (e.g: skills), it should be black and the previously blackened div (home) should return to green. *I want to do it using onclick event. I can do it using hover effect in CSS, but I want to do that when usee clicks instead of hover