How to add a twitter bootstrap tooltip to an icon

I’ve recently used it like this:

 <i class="icon-ok-sign" rel="tooltip" title="Key active" id="blah"></i>

Which produces:

enter image description here

You set the positioning of the tooltip and other features(delays etc) by declaring it using js:

$(document).ready(function(){
    $("[rel=tooltip]").tooltip({ placement: 'right'});
});

As mentioned in comments, you can find other attributes/options here.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)