oh and what about .load() event ? are things cleaned there correctly before inserting the new html or should i usw .empty().load() ?
On 26 Apr., 22:18, "lhwpa...@googlemail.com" <lhwpa...@googlemail.com> wrote: > thanks for your answer! > > what about recursion? > removing an <ul> for example > $("ul#test").remove(); > > are events binded to <li> elements inside this ul removed to? > > thants Timo > > On 26 Apr., 20:40, Ricardo <ricardob...@gmail.com> wrote: > > > If you use the remove() method all event handlers will be removed > > automatically, you don't need to worry about that. > > > On Apr 26, 6:42 am, "lhwpa...@googlemail.com" > > > <lhwpa...@googlemail.com> wrote: > > > hi all, i have a perfomance querstion. > > > > when is bind some jquery events to, for example, <p id="test"></p>. > > > and later i remove this HTML with jquery should i unbind all events > > > first or are they unbinded with removing the html?