\'.$i.\'
$i is auto generated by loop - which could lead to:
\'.$i.\'
\'.$i.\
$('div').click(function(event){
alert($(this).text());
});
A more efficient solution (since it seems you have a lot of $('#container').live('click', function(event){
if(event.target.tagName == "DIV") alert($(event.target).text());
});