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

Posted by Spines on Stack Overflow See other posts from Stack Overflow or by Spines
Published on 2010-04-23T21:15:35Z Indexed on 2010/04/23 21:33 UTC
Read the original article Hit count: 124

Filed under:

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

I have <h1>heading</h1>, how do I change it to <p>heading</p>

I think I could $.unwrap then $.wrap, but is there a better way?

© Stack Overflow or respective owner

Related posts about jQuery