[jQuery] manipulate loaded html

[jQuery] manipulate loaded html


Hi, I am using the jQuery 1.2.1 and I am able to load an external html
document into the DOM. I would like to manipulate the loaded
elements, but I haven't been able to figure out how to get references
to them.
$('div#g_sidebar').load('sidebar.html', new function(){
console.log('loaded sidebar');
$('div#g_sidebar').children().each(function(i){
console.log('each: %d, %s', i, this);
});
});
That will successfully load the sidebar and print "loaded sidebar",
but that is it. How might I get it to print the children?
http://docs.jquery.com/Ajax/load#urldatacallback
Cameron