Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jakobbossek/jquery.tooltip

Simple jQuery based tooltip plugin for rudimentary tooltips with few options.
https://github.com/jakobbossek/jquery.tooltip

Last synced: 3 days ago
JSON representation

Simple jQuery based tooltip plugin for rudimentary tooltips with few options.

Awesome Lists containing this project

README

        

jquery.tooltip
==============

Simple jQuery based tooltip plugin for rudimentary tooltips with few options.

Usage
=====

Simply use an arbitrary jQuery selector to select the elements which you want to display tooltips on hover and hook the
plugin to the selection. For example if we want to display tooltips for each link in the document with a title attribute,
we can use the following snipplet to realize this. Keep in mind that the tooltip text is extracted from the ```title``` attribute
of the elements.

```JavaScript
jQuery(document).ready(function($) {
$("a[title]").tooltip();
});
```

There are a few options which can be provided to the plugin. For example setting ```sticky``` to ```true``` results in
sticky tooltips, which will not follow the mouse movement. Take a look at the defaults in the plugin for more options.