You've got 2 options: 1. Call .click on the new element(s) after adding to the DOM 2. Use the Live Query plugin
See http://docs.jquery.com/Frequently_Asked_Questions#Why_do_my_events_stop_working_after_an_Ajax_request.3F for more info on both. - Richard On 10/18/07, schmingle <[EMAIL PROTECTED]> wrote: > > > i have a piece of code that inserts new objects into the DOM. these > objects are of the same class as other objects already in the DOM to > which jquery has bound. how do i get these new objects to bind the > same as the existing ones? in other words... let's say i have this: > > $('.foo').click(function() { doSomething()}); > > when i insert new ".foo" objects, i want them to also have their click > event bound to doSomething(). is there a built-in jquery method to do > this? or do i simply need to do the binding as the new object is > added? > > thanks! > >