try this... it keeps other embedded tags.

                                $("span.a").each(function() {
                                        $(this).after($(this).html()).remove()
                                })


On 12/25/06, Mohsen Saboorian <[EMAIL PROTECTED]> wrote:
> Thanks Jake, but unfortunately it does't fix my problem.
> The parent node might have other children which should not be changed, e.g.
>
> <span>
>   <b>abc</b> <span class="a">efgh</span> <i>ijkl</i>
> </span>
>
> should be changed to:
>
> <span>
>   <b>abc> efgh <i>ijkl</i>
> </span>
>
> Thanks.
>
> On 12/26/06, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
> > try:
> >
> > $("span.a").parent().each(function() {
> >                                         var t = $(this).text()
> >                                         $(this).html(t)
> > })
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to