Skip to content

jsiebahn/jquery-tooltip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jQuery.tooltip

A jQuery plugin to create styled tooltips with less coding.

Visit jQuery.tooltip on Github for sources and examples.

Start with jQuery tooltip

jQuery tooltip will convert any title attribute to a html tooltip. Also html markup may be used as tooltip by setting css selectors from the tooltipped element to the markup.

To activate jQuery tooltip call jQuery.tooltip.on() when dom is ready.

For more examples see example.html and for documentation of options take a look at the defaults object in jquery.tooltip.js

API

jQuery tooltip offers a few simple methods to enable and disable the tooltips and for configuration.

Global methods:

  • $.tooltip([options]) extends the settings with the given options.
  • $.tooltip.on([options]) enables the tooltips and extends the settings with the optional given options.
  • $.tooltip.off([options]) disables the tooltips and extends the settings with the optional given options.

Methods for elements:

  • $('selector').tooltip([options]) delegates to $.tooltip([options]).
  • $.tooltipOn() enables the tooltips for the set of selected elements.
  • $.tooltipOff() disables the tooltips for the set of selected elements.

jQuery.findX

jQuery.tooltip will use jQuery.findX to find the markup for the tooltip relative to the tooltipped element. If jQuery.findX is not available, absolute selectors from the document are used with the default jQuery('selector').

License

jQuery.tooltip is released under the terms of the MIT License.

Authors

Jörg Siebahn

About

A jQuery plugin to create styled tooltips with less coding.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published