Thanks, but that didn't work.
what does the .replaceWith($(this).htlm() do?
shouldn't we use something like 'remove' instead?


On Mar 9, 10:37 am, "comslash.com" <comsl...@gmail.com> wrote:
> Try this.
>
> $('article>p:last').replaceWith($(this).html());
>
> On Mar 8, 7:22 pm, carbon <carbon.ca...@gmail.com> wrote:
>
> > is it possible to use jQuery to strip a tag from a 'div' ?
>
> > example:
>
> > <article>
> > <p>hello world</p>
> > <p>last paragraph</p>
> > </article>
>
> > I would like strip the <p> tags from 'last paragraph'.

Reply via email to