You might also find the copyEvents plugin useful. It provides three methods: copyEvents, copyEventsTo and cloneWithEvents. You can find the docs inline and an example in the unit test.
http://brandon.jquery.com/plugins/copyEvents/ -- Brandon Aaron On 3/15/07, Kush Murod <[EMAIL PROTECTED]> wrote: > Hi, > > example: > > $('.buttons').click... attached an event > > at some stage I've replaced one of many '.buttons' using $.get/$.post > via html(newButton) > new button does not have click event attached anymore > > what's the best way to keep or re-attach event(s) > > Cheers, > > -- > Kush Murod, Web applications developer > Sensory Networks > [E] [EMAIL PROTECTED] > [W] www.sensorynetworks.com > [T] +61 2 8302 2745 > [F] +61 2 9475 0316 > [A] Level 6, 140 William Street East Sydney 2011 > > > _______________________________________________ > jQuery mailing list > [email protected] > http://jquery.com/discuss/ > _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
