I can clone a tag of HTML. Here is the code:
Now I need to modify only the cloned tag. How can I do that?
Thanks in advance.
5/16/2021 2:42:04 PM
What do you mean by changing the cloned tag position?
If you want to change the position where the cloned tag is inserted, you can use other methods like prepend (), insertAdjacentElement (), etc.
Avinesh , I mean using top,left,bottom ,right to position the element .
Try this 😜
var myDiv = document.getElementById("test").cloneNode(true);
Change the id of clone
@Eze sorry for asking but can you please give an example as I don't know the use of those tags?
Send us a message