But it does :)

I have

<div>
  <a/>
  <b/>
</div>

I have a jquery reference to "b" that was obtained earlier. If I
invoke .parent().remove() it removes all children of the parent - that
is both "a" and "b". I only wish to remove b.

Thanks,

-dennis


On 22 Apr., 13:48, Daniel <dcosta...@gmail.com> wrote:
> Wait. I'm sorry... the second half of my response was for a different
> post relating to parent and parents. I have not tested that in the
> wild. It should, however, not remove the siblings for the same
> reason.
>
> On Apr 22, 6:45 am, Daniel <dcosta...@gmail.com> wrote:
>
> > It shouldn't. there is parent() and parents().
> > I use that exact code for a tag system that i created. I'd link you to
> > it... but it's not public yet. The code is exact, the properties
> > changed are different.
>
> > On Apr 22, 6:40 am, dth <dennis.thry...@gmail.com> wrote:
>
> > > As far as I can see, that would remove my element as well as all of
> > > it's siblings?
>
> > > -dennis
>
> > > On 22 Apr., 13:36, Daniel <dcosta...@gmail.com> wrote:
>
> > > > var.parent().remove() should do the trick i think?

Reply via email to