Maybe, try an alternative to click or on methods. Have a look to these codes :
// With click
$(function() {
$('tr').click(function(){
alert('clicked');
});
});
// With on
$(function() {
$(document).on('click', 'tr', function(){
alert('clicked');
});
});
Check also if your tr is visible like this :
$(function() {
if($('tr').is(':visible')) {
alert('visible');
}
});