i am just practising in some king of exercise and stuck in a point i dont understand.in my code i got a button and when the user press it ,it creates 25 cells and place random numbers on them.After i tried to do some kind of things when the user clicks in each cell.Well it didnt work.the $("td") selector doesnt trigger at all.any help?
$("button").click(function(){
    $("body").append("<p></p>")
    for (i=0; i<5; i++){
        $("#t1").append("<tr></tr>");
    }
    for (i=0; i<5; i++){
        $("#t1 tr").append("<td></td>");
    }
    for (i=0; i<25; i++){
        var z = Math.round((Math.random()*89)+10);
        $("#t1 tr td").eq(i).text(z);
    }
});
$("td").click(function(){
    //code goes here
});
 
     
    