Answer the question
In order to leave comments, you need to log in
I created the wrapAll Function, but for some reason some scripts refuse to work with references to elements that have been changed, why?
I created the wrapAll Function, it creates a tag and throws the necessary elements into it (appendChild), thereby creating a wrapper, and the old elements are deleted. And everything would be fine, but for some reason the scripts stop working. (For example, when you click on submitting the form (ajax), it is not sent, although without wrapAll it works fine).
Answer the question
In order to leave comments, you need to log in
for some reason scripts stop workingSuddenly, because the elements on which the handlers were set were removed. Show full code.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question