In html there is <div id="tableContainer">
and to it I appended dynamically created a table
table = $("<table id="myTable" class='helpTable'>");
table.append("<tr id='1'><td>content<td></tr>");code
table.append("<tr id='2'><td>content<td></tr>"); code
$('#tableContainer').append(table);
Now I want to add event on table row like
$("#myTable tr").on('click',function(event) {
alert("Hi"); });
Its not working, however following is case is working
$("#tableContainer").on('click',function(event) {
alert("Hi"); });
i.e. I can have event on static html tag