I have this HTML structure:
<div>something</div>
<p>this is a paragraph</p>
Now I want to replace that <p> with <span>. Something like this;
<div>something</div>
<span>this is a span</span>
I want something like this:
$("div").siblings("p"). /* replace with "<span>this is a span</span>" */
Note: There isn't any wrapper around that <p>. So I cannot use .html().
Well, doing that is possible?