[jQuery] Strip element from inside object
I'm returning a jQuery object <div> that has <a></a><span
class="type"></span><span class="size"> inside as .html().
So how do i get rid of the span class="type" from the object and then
place the rest of the HTML into another element?
Example:
function otherFunction(){
doFunction($(myObj));
}
function doFunction(ob){
alert(ob.html()); // where this line alerts the <a> and 2 <span>
tags mentioned above.
}
Thanks.