Why exotic method one
in your code? :)
Here it is in one line it works as it should. Just add the pattern Id instead of a class.
Let me explain for clarity. F-tsiya appendTo (like append ) MOVES
the element. In your code with one
- once you clone the element and place it in variable to use then many times, but this is a mistake. If you want a lot of templateS , then clone them each time. Otherwise, you have only ONE clone, sootvestvenno crowd of sheep Dolly so not to get :) .