F
F
Frank_Sidebottom2018-03-22 16:56:18
JavaScript
Frank_Sidebottom, 2018-03-22 16:56:18

How to add a class and remove this class from other elements?

Hey! Need help. There are several elements. I click on one element - a class is added to it. I click on another element - a class is added to it, and this class is removed from the first element. Etc. And if I click on an element that already contains our class, then this class is removed from it.

here is the fiddle template: https://jsfiddle.net/s4e8g8pa/6/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nick Sdk, 2018-03-22
@Frank_Sidebottom

https://jsfiddle.net/jbp0be99/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question