[jQuery] Re: Add events and functions to ajax content

2008-07-16 Thread hubbs
Ok, so it sounds like I need to rebind when my new elements are added. Strangely the .bind() example is not even using bind. This is the example: $('a').click(fn); $('#mydiv').load('my.html',function(){ $('a').click(fn); }); Is this the best way to do what I need, or are some of the

[jQuery] Re: Add events and functions to ajax content

2008-07-15 Thread Karl Swedberg
On Jul 15, 2008, at 6:47 PM, hubbs wrote: I have some html that is brought in through ajax which itself has some jquery functions attached to it. These are not working unless I include a document ready in the content that is pulled through with ajax. This in turn conflicts with my pages