I'm trying to add a handler to a tr that is generated in JQuery but it doesn't respond. Each row is meant to open a different view.
someArray.forEach(
function (element) {
$('#table').append("<tr id='" + element.id +"'</tr>").ready(
function() {
$("#" + class.id).on("click", function () {
$("body").load("OtherView.html");
})
});
});