I tried all day to have some popovers in my table that shows more information for each cell. But I came to the conclussion, popovers do not work at all in my code. How and Why? Anyone any idea what it can be?
<td>
<div>
<span class="btn" id="infoItem" data-toggle="popover" rel="popover">
<?php echo $row[0] ?>
</span>
<script>
$(document).ready(function() {
$('[data-toggle="infoItem"]').popover({
html: true,
animation: false,
content: <?php echo $row[0] ?>,
placement: "bottom"
});
});
</script>
</div>
</td>
For now I just show the same info in the popover as in the cell. The info shows in the cell so the popover is not empty.
Here is the working JS Fiddle