Skip to content
Lightweight JS function to dynamically add tooltips to html elements. No dependencies required. Very simple way to add tooltip labels to your application.
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
quicktips.js

README.md

Synopsis

Quicktips is a very lightwight JS funciton that dynamically adds tooltips to html elements. They are automatically positioned below and centered horizontally based on width of the tooltip and parent element. Simply add the JS to your project or page, adjust your markup accodingly, thats it.

Markup

Step one (only step really): Add a data-qt attribute to any element you want a tooltip on.

<a href="#" data-qt="Tooltip Label Here">Link Text</a>

JS

Include the Javascript in your page or add it to your external JS file.

You can’t perform that action at this time.