[jQuery] Re: Remove Parent not working in IE6

2007-06-21 Thread G[N]Urpreet Singh
Thanks Guys, It worked like a charm... Gurpreet On 6/20/07, Scott Sauyet <[EMAIL PROTECTED]> wrote: > > > G[N]Urpreet Singh wrote: > > I cannot "remove" the parent of an element in IE6. The behavior in IE6 > > is that only the first of the parents is getting removed and then it > > stops working

[jQuery] Re: Remove Parent not working in IE6

2007-06-20 Thread Scott Sauyet
G[N]Urpreet Singh wrote: I cannot "remove" the parent of an element in IE6. The behavior in IE6 is that only the first of the parents is getting removed and then it stops working. > [ ... ] This is div 1 Del This is div 2 Del You cannot have multiple elements with the same id. It'

[jQuery] Re: Remove Parent not working in IE6

2007-06-20 Thread spinnach
you should use classes instead of id's, since it's invalid html to have more elements with the same id on the same page.. the way you're doing it binds the click event to only the first element found on page (since the id must be unique).. change the id="trash" to class="trash" and $('#trash