jQuery .click function not working on < td > tag?
http://api.jquery.com/on/
Since you are creating the elements after the DOM has been created. Use the "on" selector to get the precise element that is dynamically created.
From the URL:
$("#newTable").on("click", "td", function() {
alert($( this ).text());
});
Try like this :
$('body').on('click','td', function() {
alert('clicked');
});