so guys..what i'm trying to do is to acces the content loaded via AJAX but in an other way than by a callback function.
i have a div where the data will be loaded via ajax, the data is represented by a list of folders and when i click one of them i want to load then the subfolders...and so on, but if i use the callback function this is not gonna be dynamic..cause i don;t know how deep is gonna be the tree. for example: if i have this html <div id="loaded_data"></div> and after the data will be loaded will look like this: <div id="loaded_data"> <a href="folder_1">folder_1</a> <a href="folder_2">folder_2</a> <a href="folder_3">folder_3</a> </div> and the javascript looks like this: $.(document).ready(function(){ $('div#loaded_data').load('action.php',{'path' : 'default_path'},function(){ $('a').click(function (){ $ ('div#loaded_data').load( etc etc ...loads the subfolders in the respective folder); }); }); }); but if i do in this way....first time it works....so id i click <a href="folder_1">folder_1</a> it loads the subfolders...and if i click then on of the subfolders loaded with ajax it wont work anymore to see the subfolders in the respective folder.... i hope that i made myself clear :D any help will be appreciated, thanks