Answer the question
In order to leave comments, you need to log in
How to implement applying a property to only one element of the list?
There are menu items in the form of a list li. I want that when I click on an element, a certain background is applied to it. When clicking on another element, the background from the previous one returned to the original one, and was applied to the active one. I've been struggling for the third hour, as soon as I haven't tried it, it doesn't work, please tell me.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question