click jquery does not work in firefox [duplicate]

1

Good morning, after the code that fills the table, the manipulation of the click does not work in firefox, but it works in chrome, does anyone have any light, please?

function carregarItens(){


//variáveis
var itens = "", url = "transfer.php";

//Capturar Dados Usando Método AJAX do jQuery
$.ajax({
    url: url,
    cache: false,
    dataType: "json",
    beforeSend: function() {
        //$("h2").html("Carregando..."); //Carregando
    },
    error: function() {
      //  $("h2").html("Há algum problema com a fonte de dados");
    },
    success: function(retorno) {
        if(retorno[0].erro){
           // $("h2").html(retorno[0].erro);
        }
        else{
            //Laço para criar linhas da tabela
            for(var i = 0; i<retorno.length; i++){
                itens += "<tr>";
                itens += "<td>" + retorno[i].idusuario + "</td>";
                itens += "<td>" + retorno[i].desLogin + "</td>";
                itens += "<td>" + retorno[i].dessenha + "</td>";
                itens += "<td>" + retorno[i].dtcadastro + "</td>";
                itens += "</tr>";
            }
            //Preencher a Tabela
            $('.table tbody').html(itens);



            //Limpar Status de Carregando
          //  $("h2").html("Carregado");
        }
    }
});

    $(document).ready(function(){
        $("#clicked tr").on('click', function(){
                    alert('adfsaf');
                });
            });

}

    
asked by anonymous 05.11.2017 / 16:12

0 answers