Some of these questions that get asked over and over on the list should really be on the jQuery FAQ:
http://docs.jquery.com/Frequently_Asked_Questions -Dan >-----Original Message----- >From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On >Behalf Of David Duymelinck >Sent: Friday, July 27, 2007 4:22 AM >To: jquery-en@googlegroups.com >Subject: [jQuery] Re: Attach pre-defined events to loaded dom elements? > > >I think this is what you need : >http://www.learningjquery.com/2006/09/sacrificial-lambda > > >-- David > >Phillip B Oldham schreef: >> Hi all >> >> I have a document with some links with a certain class. When loaded, >> some events are attached to these links. >> I'm then using $().load() to grab a HTML fragment and append it to the >> DOM. Inside this HTML fragment are more links with aforementioned >> class. >> >> Is there a way I can globally attach the relevant events to the newly >> loaded dom elements without being specific? I'm trying to move this >> code into a plugin. >> >> >>