Skip to content

debrouchee/simpletooltip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simpletooltip

Simple jQuery Tooltip


Requirements

  • jQuery >=1.6

Installation

Bower:

bower install debrouchee/simpletooltip --save-dev

Or download js/simpletooltip.min.js and include the script on your page like shown below.


Usage

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');

About

Simple jQuery Tooltip

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors