Please help me figure it out.
Here there is page A, from it the Ajax is sent to page B, from there it returns to page A through .html(data) . On page B, a script is generated that looks like this $('.class').click(так далее) .
The problem is this: when sending 2 times Ajax, 2 scripts are returned and it turns out that when you press the button, the script is processed 2 times, if you send the Ajax 3 times, 3 times it will be how to make sure that the previous script was erased and only one remained, at least once ajax