Change the onclick event handler into a jQuery .live() event and you'll be fine for sure.
On Aug 26, 1:57 pm, oleOhle <mohleme...@googlemail.com> wrote: > OK, thanks everybody! I think I understand. > > Actually my second attempt could easily be rewritten to match exactly > what jQuery does. It really boils down to the remove() function, which > does some magic to remove data and events related to the contained DOM > elements. Since I only have one HTML onClick event handler defined on > one of the elements and do not use the jQuery event system, I hope > that I'm fine with using the suggestion of setting the innerHTML to ''.