title: how to apply bootstrap tooltip to a dynamic generated table
body: <p>I have table that get populated with data from the database, i would like to add bootstrap tooltip this this, so when someone hoverover a row in a table his detail will get display. within that tool tip i would like to add a image, can i do that inside the toolt? This is my dynamic generated table.</p>
  
  <pre><code>$(document).ready(function () {
      $('#DisplayTable').tooltip({
          'show': true,
          'placement': 'bottom',
          'title': "Please remember to..."
      });
  });
  
  function Table(x) {
      var statusCol = "";
      var table = '&lt;table&gt;&lt;tr&gt;&lt;th&gt;First Name&lt;/th&gt;&lt;th&gt;Surname&lt;/th&gt;&lt;th&gt;Surname&lt;/th&gt;&lt;/tr&gt;';
      var ID = 0;
      for (var student in x) {
  
          var row = '&lt;tr class=\'staff-row\'id=\'' + x[id].ID + '\'&lt;/tr&gt;';
          var row = '&lt;tr class=\'staff-data\'id=\'' + x[id].Age + '\'&lt;/tr&gt;';
  
          row += '&lt;td&gt;' + x[student].fNanme + '&lt;/td&gt;';
          row += '&lt;td&gt;' + x[student].sName + '&lt;/td&gt;'
          row += '&lt;td&gt;' + x[student].username + '&lt;/td&gt;'
          ID++;
          table += row;
      }
      table += '&lt;/table&gt;';
      $('#DisplayTable').html(table);
      $('#DisplayTable').tooltip({
      'show': true,
      'selector':'.staff-row, .staff-data',
      'placement': 'bottom',
      'title': function(event){
          var tds=$(this).find('td');            
          var tds=$(this).find(x[id].Age);            
          return $(tds[0]).text()+" "+$(tds[1]).text()+$(tds[3]).text();
      },        
  });
  
  }
  </code></pre>
  
  <p></p>
  
  <blockquote>
    <p>but tooltip dont work when i hover over the records?</p>
  </blockquote>
  
  <pre><code>        function Method(a,b,c) {
          $.ajax({
              type: "POST",
              url: "Services/method.asmx/SomeMethod",
              data: JSON.stringify({ a: a, b: b, c: c }),
              contentType: "application/json; charset=utf-8",
              dataType: "json",
              success: function (msg) {
              }
          });
      }
  </code></pre>