I make some code like this
Ajax give me a pagination bar with the <a href="" class="page-navi page--4">4</a> for example.
But bind and alert not working. Why?
    <script ... >
$(function() {
  $(".page-navi").bind("click",function() {
alert("!!!");
});
$.ajax(
    {
        url: "some url",
        type: "GET",
        success:function(data, status, jqxhr)
        {
            $("#pagination").html(data);
        },
        error: function (request, status, error) {
            console.log(request.responseText);
        }                        
    });
});
</script>
 
     
    