Thanks GUys I will try that and get back to you sometime. On Oct 22, 3:41 pm, radhames brito <[email protected]> wrote: > to explain my previous comment, if you do > > $(document).ready(function() { > > > $('#foo').click(function() { > > $(this).css("backgroundColor", "blue"); > > }); > > }); > > and you change the node holding the "foo" element, since you attached the > click event on document ready, the event will not work again after the > change, so with the live event you make the browser keep looking for "foo" > element like the observe event from prototype, so if you update somehow the > "foo" element the click event will be reattached
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

