I have a table in which rows are generated dynamically. I have to add tooltip
to one of the cells in all the dynamically generated rows. The tooltip
is working for <th></th>
but not for the <td></td>
Here is my table
<table>
<thead>
<tr><th id="table-head" data-toggle="popover" data-trigger="" data-content="Sample Tootlip">Table Head</th></tr>
</thead>
<tbody>
<tr data-ng-repeat="item in Samplelist">
<td class="tableContent" data-toggle="popover" data-trigger="" data-content="Content Tootlip">{{item.value}}</td>
</tr>
</tbody>
</table>
And Here is the JQuery
$('.tableContent').popover({
container: 'body',
placement: 'left',
trigger: 'hover'
});
$('#table-head').popover({
container: 'body',
placement: 'left',
trigger: 'hover'
});
The tooltip is appearing in <th></th>
but not in <td></td>
Is it because its dynamic how to solve it?