Remove some tags in jquery

Posted by user201140 on Stack Overflow See other posts from Stack Overflow or by user201140
Published on 2010-05-14T16:21:27Z Indexed on 2010/05/14 16:24 UTC
Read the original article Hit count: 217

Filed under:
|
|

I would like to use jquery to remove some tags inside mainclass, so that this -

<div class='mainclass'>
<div class='inclass'>
<a href='#'>Some text</a>
</div>
</div>

Becomes this -

<div class='mainclass'>
Some text
</div>

Thanks in advance.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery