-1
I’m having trouble moving elements on the screen with pure javascript. I need to "crop" the element of a place -> And send this element to another place , and do this with all the html that this element contains within it
Is there a way to cut the element from one location and send it to another? This is what I’ve tried to do:
bemVindo.classList.remove('bemVindo'); novoElemento.classList.add('novoElemento')
but that way it only changes the class, and I need it to be "moved" to the other class.
"Moved" what you say is to cut an element of Header and paste in Footer? Your question was not very clear...
– hugocsl
Yes, cut the element from one place and "paste" into another
– wpdev