First the error which i am recievieng is undefined is not a function. I am generating a table on ajax call by button click. The problem is that the click event on cell is not performing.
my code is like
$(document).ready(function () {
$('#btnCall').click(function () {
$.ajax({....
success: function (data) {
//Here i am creating a table with id = myTable
}
});
});
//After ajax call completed i am using this
//but this is not happening
//i want to show alert when cell clicked of the table
$("#myTable tr td").click(function(event) {
alert(event.pageX);
alert(event.pageY);
});
});