I asked at Parsing HTML String with jQuery how I can use jQuery on an html string. That all works, but when I apply it to ajax - it does not work. Here is the code.
try $('div', code).each instead.. like so...
$('div', code).each( function () { alert($(this).text()); });
I haven't tested it though...