Hello! How can you get:
<a href="page.html" class="class1 class2" id="thisid">Text</a>
changed to
<p href="page.html" class="class1 class2" id="thisid">Text</p>
I'm familiar with jQuery's replaceWith
but that doesn't keep attributes/content as far as I know.
Note: Why would p have a href
? Cuz I need to change p
back to a
on another event.