Hello, we have a click event, we need a class to be added after clicking and hover events change. Explain why if I click on event click I set the condition if else the verification does not work for me https://jsfiddle.net/wp2tLnfy/1/ , but the code works only
https://jsfiddle.net/wp2tLnfy/