I am currently utilizing the Bootstrap framework v3.3.0 for my website.
I'm trying to implement an image as a tool-tip when the user hovers their mouse pointer over an icon. Here is the HTML code I have:
<div class="col-sm-5">
<div class="input-group">
<input type="text" class="form-control" name="trans_id" id="trans_id"/>
<span class="input-group-addon">
<a href="#" class="glyphicon glyphicon-question-sign" rel="tooltip" data-html="true" title="localhost/img/demo_img.png"></a>
</span>
</div>
</div>
The jQuery code that I am using is:
$(document).ready(function() {
$('.input-group-addon').tooltip({
selector: "a[rel=tooltip]"
})
});
However, I am unable to display the image on hover. Currently, the text mentioned in the title appears as the tool-tip displaying the complete image location path.
All relevant CSS and jQuery files have been properly included.
I would greatly appreciate assistance with this issue.
Thank you in advance.