> In other words, i have a main page with a menu that loads external
> files in the #content div with the load(file) function. The external
> file contains a DIV, and i want to bind a function to it $
> ("#mynewdivfromexternalfile").click(function() {alert ('it worx!'} );

You can use a callback in the load to bind it right after it loads the
ajaxed content, or use .live() to bind the event at page load time if
you know the id then.

Reply via email to