Ok, I think I got it:

var the_val = ob.clone().find("span").remove();
alert(the_val.html());

On Nov 22, 12:12 am, briandichiara <[EMAIL PROTECTED]> wrote:
> 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.

Reply via email to