Jquery - How do I change the parent of an element from an H1 to a P?
<p>Jquery - How do I change the parent of an element from an H1 to a P?</p>

<p>I have <code>&lt;h1&gt;heading&lt;/h1&gt;</code>, how do I change it to <code>&lt;p&gt;heading&lt;/p&gt;</code></p>

<p>I think I could <code>$.unwrap</code> then <code>$.wrap</code>, but is there a better way?</p>
