Live uses event delegation. It will capture events on the 'document' element and then find out which element was clicked, if it matches 'span[attr=value]' then your function is called.
Read all about it at the docs: http://docs.jquery.com/Events/live On Jan 23, 3:13 am, Ami <aminad...@gmail.com> wrote: > Hello. > Sorry about my grammar, English isn't my tang. > > I want to understand how the "$(selector).live()" works. > > I have a DOM with a lot of elements. > > So if I write: > $('span[attr=value]').live('click').. > > When jQuery search for this SPAN? > > jQuery search immediately for all span[attr=value], or every time > that I click on any element jQuery check if it span[att=value]?