I'm dynamically inserting into my table, so far so good. The problem is how much I try to click on one of the lines and I have no answer, I believe that I am not inserting in the DOM, someone could help me.
INSERTING:
$('#tabelaChat').append('<tr><td style="font-size: 9pt;">'+ data.flag[i].nome +'</td></tr>');
BY CLICKING:
$('#tabelaChat tr').on('click', function(e){
alert("Teste");
return false;
});