I Can't understand which is the problem of my code trying to click on a list-group-item of my list-group. I want to catch the click and nothing's happening.
$("#inserisci_cerca").keyup(function() {
        var text = $("#inserisci_cerca").val();
        $.ajax({url:"https://ewserver.di.unimi.it/mobicomp/geopost/users?session_id="+sessionStorage.getItem("session_id")+"&usernamestart="+testo+"&limit=10",
                type: "GET",
                dataType: "json",
                success: function(result) {
                    $("#div1").html("");
                    $("#div1").append("<ul class='list-group'>");
                    result.usernames.forEach(function(item,index) {
                        $("#div1").append("<button type='button' class='list-group-item list-group-item-action' id='okok'>" + item + "</button>");
                    })
                    $("#div1").append("</ul>");
                }
        });
    });
$("#okok").click(function() {
 console.log("Hello");
})
What am i doing wrong?
