O
O
OculusDaemon2018-03-11 01:43:11
JavaScript
OculusDaemon, 2018-03-11 01:43:11

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 .activeto 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

1 answer(s)
C
coderisimo, 2018-03-11
@OculusDaemon

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 question

Ask a Question

731 491 924 answers to any question