A
A
Aison2021-12-08 19:01:44
AJAX
Aison, 2021-12-08 19:01:44

How to hang a listener on a button if ajax is used?

Initially, the listener hangs on the button with the class .pp-btn__episodes, but after clicking on the button, the window is updated (via Ajax), as if the button remains, but there is no listener.

61b0d6417a5d4619390060.png

after the update (by the way, everything in the .player block is updated), the listener disappears.

how to re-hang it on .pp-btn__episodes? the listener from the button slides down after clicking on another button.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2021-12-08
@Rsa97

https://habr.com/ru/post/512782/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question