tooltips js code example
Example 1: show tooltip automatically
$(document).ready(function() {
$('p').tooltip({
trigger: 'manual'
}).tooltip('show');
setTimeout(function(){ $('p').tooltip('hide'); }, 3000);
});
Example 2: javascript set tooltip
document.getElementById("myIdReference").title = 'my tooltip text'
/* insta: @9_tay */