Thanks for your reply but I am looking to wrap the new element rather than 
inject it.

For example injecting it simply adds the new element inside the div either 
at the bottom or top of the element:
 <div id="clickme">
    Click Me
    <span class="clicked"></span>
</div>

Whereas I want to wrap the element so the text is included in the new 
element:
 <div id="clickme">
    <span class="clicked">
        Click Me
    </span>
</div>

Any other ideas?

Thanks

Reply via email to