[jQuery] Re: Unbind by Function Reference

2009-03-19 Thread ricardobeat
Since jQuery 1.3 you can use the live() function, so you don't need to rebind the events. Just set $('table caption a').live('click', addItemFinal) once in $ (document).ready() and all anchors added to the doc afterwards that match this selector will fire the function on click. live() uses what

[jQuery] Re: Unbind by Function Reference

2009-03-19 Thread bart
Thank you for your answer. With a search on the jquery site I can't find the documentation on how to use the function or see an example.. Why is that? On Mar 19, 3:40 pm, ricardobeat wrote: > Since jQuery 1.3 you can use the live() function, so you don't need to > rebind the events. > > Just set

[jQuery] Re: Unbind by Function Reference

2009-03-19 Thread ricardobeat
http://docs.jquery.com/Events (Live Events) http://docs.jquery.com/Events/live#typefn On Mar 19, 3:35 pm, bart wrote: > Thank you for your answer. With a search on the jquery site I can't > find the documentation on how to use the function or see an example.. > Why is that? > > On Mar 19, 3:40 p