When I try putting a tooltip
on a glyphicon, it does not seem to work correctly. But when I put it outside the tile it works fine. I'm very confused and any help would be much appreciated!!
Here's the jsfiddle of what i am talking about: https://jsfiddle.net/noe3mdvx/
HTML:
<div class="col-sm-9" style="display:inline-block">
</div>
<div class="row">
<div class="panel panel-default col-xs-2 lp-centerNav-panel" style="position: relative;" >
<div class="tipText">
<p>
<span data-toggle="tooltip" title="Hooray!" class="glyphicon glyphicon-question-sign">
</span>
</p>
</div>
<div class="panel-body">
<strong>Accounting</strong>
</div>
</div>
</div>
</div>
Full HTML:
<div class="row">
<div class="panel panel-default col-xs-2 lp-centerNav-panel" data-ng-repeat="menuItem in lp.MenuItems" data-ng-click="lp.Redirect(menuItem);" style="position: relative;">
<div class="tipText">
<span class="glyphicon glyphicon-info-sign" data-toggle="tooltip" data-placement="top" title="Hooray!"></span>
</div>
<div class="panel-body">
<strong data-ng-bind="menuItem.LinkText"></strong>
<img data-ng-src="{{menuItem.ImageUrl}}" />
</div>
</div>
</div>
JS:
$(document).ready(function () {
$('[data-toggle="tooltip"]').tooltip();
});