[SOLVED] clone without inside element
hey dudes,
any idea how to clone an element, and exclude any contained elements, but include container CDATA
i.e. clone this:
-
<h1 class="cloneme"><a href="#">foo</a></h1>
and end up with this:
-
<h1 class="cloneme">foo</h1>
any pointers would be great
thanks heaps.