-1
Currently, the element is like this :
<li>
<a>
<i> </i>
</a>
</li>
But, I want to change the tag position i with Javascript, out of the tag to, making the tags sisters, ie :
<li>
<a> </a>
<i> </i>
</li>
I have tried this with insertAdjacentHTML, but something is going wrong, because I want to take the father element, and so I’m not getting it
If I understand correctly, just take the element
a
and make ali.appendChild(a)
. The elementi
will be moved to the end of theli
.– Andre
Thank you!!!!!!!!
– Verônica Emschermann