I'm trying to use the Tooltip with Bootstrap 4, but it just does not show up:
In HTML it looks like this:
<a class="btn btn-sm btn-warning" href="" data-toggle="tooltip" data-placement="top" title="Editar"><i class="fa fa-edit"></i></a>
End of page after JS files:
<script type="text/javascript">
$(document).ready(function() {
$('#bootstrap-data-table-export').DataTable();
$('[data-toggle="tooltip"]').tooltip()
} );
</script>
I'm using jquery 3.3.1, but I already used version 2.1.4 also and it did not work. One more detail is that when I add Tooltip settings, the title that appeared before no longer appears.
RESOLVED:
I was able to solve it in a way that I did not quite understand ... I took the tooltip () function from the html file, I used it after adding all JS. I placed it next to an external JS file (main.js) and it worked. Thanks to all who contributed!