change title attr to data-title this do like this
$('.like').each(function () {
let title = $(this).attr('data-title');
$(this).tooltip({title: title, animation: true});
});
change title attr to data-title this do like this
$('.like').each(function () {
let title = $(this).attr('data-title');
$(this).tooltip({title: title, animation: true});
});
i use bootstrap tooltip like this
<i class="m-2 far fa-heart like" id="p-like" data-toggle="tooltip" data-placement="right" title="Please login"></i>
and i active that with this script
$('#p-like').tooltip();
but tooltip two times display. what is my mistake. thanks for you’r help.
Remove the title attribute.
so how to set message for tooltip?? @RobMoll
I can’t reproduce the error