2
Is there a way in JS/Jquery to change a tag in HTML?
For example, I have a:
<div></div>
And I want, let’s say I want it to become a span:
<span></span>
In short, to change:
<div></div>
For:
<span></span>
Or for any other tag, is it possible? For example, use a remove() and then an Insert but the Insert tag is in the same place as the tag I removed.
Of course this is impossible. Once an element has been created, it is immutable. Most likely any and all way to do this will be a scam and will be subject to failures.
– Jéf Bueno