on click on tr

on click on tr

susersuser Posts: 68Questions: 18Answers: 0
edited July 2016 in Free community support

I use link-button in grid-view for display popup appear by using this

 $(function () {
  $('[ID*=lbViewChart]').on('click', function () {
    var row = $(this).closest('tr');
    var Id = row.find('td')[0].firstChild.data;
    var obj = {};
    obj.ID = Id;
    GetData(obj);
    return false;
});
$(function () {
  $('#tabledata tbody').on('click', 'tr', function () {
    var row = $(this);
    var Id = row.find('td')[0].firstChild.data;
    var obj = {};
    obj.ID = Id;
    GetData(obj);
    return false;
});



 
   


i fill table through jquery like this 
if (final[i] !== null) {
   $("#tabledata").append("<tbody><tr><td>" +
   final[i][0] + "</td> <td>" +
   final[i][1] + "</td> <td>" +
   final[i][2] + "</td> <td>" +
   final[i][3] + "</td> <td>" +
   final[i][4] + "</td></tr></tbody>");
}

table is successfully filled but when i click on row nothing happens

when i click on row nothing happens any solution?

This discussion has been closed.