Simple jQuery Tooltip
- jQuery >=1.6
Bower:
bower install debrouchee/simpletooltip --save-dev
Or download js/simpletooltip.min.js and include the script on your page like shown below.
Include script:
<script src="simpletooltip.min.js"></script>Markup (example):
<a href="index.html" title="<strong>Morn says:</strong><br>It's not revolutionary but a tiny little helper!" class="tooltip">What says Morn?</a>Initialize:
$(function() {
$('.tooltip').simpletooltip();
});
Initialize (for work with dynamic DOM-Manipulation):
$(document).on({
mouseenter: function(event) {
$.simpletooltip.show(el, event)`;`
},
mouseleave: function() {
$.simpletooltip.remove();
}
}, '.tooltip');