[jQuery] Re: jquery unbind events before removing html?

2009-04-26 Thread Ricardo
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.

[jQuery] Re: jquery unbind events before removing html?

2009-04-26 Thread lhwpa...@googlemail.com
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

[jQuery] Re: jquery unbind events before removing html?

2009-04-26 Thread lhwpa...@googlemail.com
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