Answer the question
In order to leave comments, you need to log in
How to move a class to the next element?
Can you please tell me how, with the help of jquery, by clicking on next, transfer the class .active
to the next one .item
?
Here is an example: https://codepen.io/OculusDaemon/pen/bvNPyd
PS I tried to do it on pure js, but it only works once.
As I did on js: https://codepen.io/OculusDaemon/pen/eMmqNG
Answer the question
In order to leave comments, you need to log in
https://codepen.io/coderisimo/pen/OvPKMP ?
And so we firmly bind the ability to click to the active div
https://codepen.io/coderisimo/pen/qoEeNJ
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question