I have newly created table and I want to bind key-press event to td
I have written the following code and it is not working
$("body").on("keypress",".control table tr td",function(e){
alert(9);
});
and I replaced keypress with click then it is working
$("body").on("click",".control table tr td",function(e){
alert(9);
});