markTip
A very simple jquery tooltip plugin.
Dependency
jQuery 1.8+
5 Steps Guide
- Include jquery.js and
<script src="marktip.js"></script>
- add marktip class
<span class="marktip">Hover me<span>
- add tooltip text
data-marktip-title="Hello"
- Set options using data attribute
data-marktip-position="top"
- Initialize markTip
$('.marktip').markTip()
Options
You can set options in two different ways
<span class="marktip" data-marktip-title="Hello!" data-marktip-position="top"> Hover me </span>
or
$('.marktip').markTip({ position: 'top' });
Changelog
- version .0.1.0
- initial feature