I recently attempted to add a jQuery tooltip to my website, but I had some trouble putting together a decent solution. Through that experience, I’ve assembled this round up of some of the best and most popular plugins I’ve found.
jQuery Tooltip
Developed by Jorn Zaefferer, this plugin “displays a customized tooltip instead of the default one for every selected element. The tooltip behaviour mimics the default one, but lets you style the tooltip and specify the delay before displaying it. More customizations are available via plugin options.”
It’s very clean and works smoothly, plus it requires little effort to set up and get running. The official demo page is stuffed with examples that will surely help you get started.
To install this plugin, download the package from the project home page. Once you have the files unzipped into your directory of choice, you can start having a look at the examples included or just head on to including the script into your HTML document.
<script type="text/javascript" src="/projects/js/jquery.1.3.2.min.js"></script> <script type="text/javascript" src="/projects/js/jquery.tooltip.min.js"></script>
A common problem that arises when dealing with tooltips is the different styling of balloons in the same page. Tooltip provides an easy way to overcome this issue by means of the extraClass option.
$(function () { // All elements with class "pretty" will have the same style $(’.pretty’).Tooltip ({ track: true, delay: 0 }); }); // We can use this instead to have tooltips with different appearence on the same page $(function () { $(’.pretty1’).Tooltip ({ track: true, delay: 0, extraClass: "fancy1" }); $(’.pretty2’).Tooltip ({ track: true, delay: 0, extraClass: "fancy2" }); });
The CSS would be
.fancy1 { background-color: blue; } .fancy2 { background-color: yellow; }
There is also a very useful option that lets you fix PNG transparent backgrounds in IE: just add fixPNG: true to make IE aware there’s some sort of transparent background!
$(function () { $(’#pretty’).Tooltip ({ track: true, delay: 0, extraClass: “pretty1 ”, fixPNG: true, opacity: 0.66 }); });
Beautytips
Beautytips is a simple to use balloon style tooltip plugin brought to the world by Jeff Robbins. Balloons are drawn dynamically using the canvas HTML 5 element, and options include corner radius, spike length and width, stroke width. The balloons can auto-position based on the most available area in the current display window or they can be positioned according to an array of preferences (just left or right for instance).
The demo page is a huge help for beginners because it shows many ways to accomplish some of the most common tasks a ballooner may want to see realized.
Installation is no big deal. As usual, just download the package and have fun. A special note, though, goes to the other plugins included; since BeautyTips can work with bgiframe (to fix z-index problems) and (for a better control of hover events), they both come along with BeautyTips files. If you plan to make this work in IE, don’t forget to have a look at Google’s ExplorerCanvas, to support Canvas in IE, also included.
Basic usage is somewhat simple and is no longer than
$(selector).bt(); // or, if you want to add some text $(selector).bt('Content text');
More advanced solutions are to change the trigger event and position, style and appearence of the balloon for a better visual experience.
$(selector).bt ({ fill: <color> cssStyles: {color: <color>, fontWeight: <normal|bold>, width: <int>}, padding: <int>, cornerRadius: <int>, animate: <bool> });
qTip
qTip “is an advanced tooltip plugin for the ever popular jQuery JavaScript framework” written by Craig Thompson. “Built from the ground up to be user-friendly, yet incredibly powerful, qTip provides you with tons of features like rounded corners and tips, and best of all… it’s completely free!”
Installation is a no-brainer, just unzip and include:
<script type="text/javascript" src="/projects/qtip/js/jquery.1.3.2.min.js"></script> <script type="text/javascript" src="/projects/qtip/js/jquery.qtip-1.0.0.min.js"></script>
Documentation and demos are pretty extensive and cover a lot of common problems and useful information. There’s also a very well-made tutorial describing in detail how it works and what are the options you have to tweak in order to change style dimensions and everything else.
Amongst the three plugins I’ve covered, this is my favorite because of its many options and straight-forward approach. Also, if you ever wanted to give tooltips a tooltip (and who hasn’t?), now you can!
<script type="text/javascript"> // Create the tooltips on document load so we know the DOM is ready $(document).ready(function() { var i, styles, tooltipCount, content; // Setup a styles array and tooltip count variable tooltipCount = 0; styles = [ 'dark', 'cream', 'green', 'red', 'light', 'blue' ]; // Define the tooltip creator method function createTooltip() { // Setup the content string content = ''; for(i = 0; i < tooltipCount; i++) content += (i > -1) ? ' tooltip\'s ' : 'tooltip '; // If tooltip count is greater than 7, exit if(++tooltipCount == styles.length + 1) return; // Initialize the tooltip on the previous tooltip this.elements.tooltip.qtip( { content: 'I\'m a'+content+' tooltip!', // Concat. the generated content string position: { corner: { tooltip: 'topMiddle', target: 'bottomMiddle' }, adjust: { resize: true, scroll: true } }, show: { ready: true }, // Show the tooltips when they're ready hide: false, // Don't hide them style: { name: styles[ tooltipCount - 1 ], width: { max: 700 }, // Set a high max width so the text doesn't wrap tip: true // Give them tips with auto corner detection }, // Refer back to this function onRender api: { onRender: createTooltip } }); } // Create first tooltip targetting the first h2 in the #content element createTooltip.call({ elements: { tooltip: $('#content h3:first') } }); }) </script>
Conclusion
These are only three of the many plugins available out there, some a little better, some with more features and cool effects. Just for completeness and respect towards other plugin developers, here is a list of other solutions I’ve found on the web. Please feel free to leave your opinion and add to the list of all the tooltip plugins I may have forgotten.
- Bubble Tooltips by Alessandro Fulciniti
- Help Balloon by Beau Scott
- jTip by Cody Lindley
- jQuery Ajax Tooltip by Caleb Tucker?
- Simple tooltip by Marius Ilie?
- wTooltip by Abel Mohler
Obviously, the key to get nice stuff done is… try, read, understand and try again – so experiment with these plugins and find the one that best suits your needs. Or write your own!
If this post was helpful to you, please consider sharing it with others, it's a great way of saying thanks.





Alif Rachmawadi
August 22, 2009
All you mentions above are great tooltip plugins especially for qtip.
Nice roundups Giulio!
.-= Alif Rachmawadi´s last blog ..Web Scraping.. Learn the Basic =-.
Luis Lopez
August 22, 2009
Excellent article, I need some of this cause I am learning some jquery since some weeks, even if I can not dedicate all the time I want.
.-= Luis Lopez´s last blog ..What is RSS and The Subscribe to My RSS Experiment =-.
robb
August 22, 2009
i’ve used jtip before and it’s very easy to use and practical.
recommended !!
Craig Thompson
August 22, 2009
Great article Guilio. Glad to hear qTip was your favourite plugin and you found the documentation helpful. Feel free to pop by the forums if you ever have any problems setting it up!
.-= Craig Thompson´s last blog ..New corner engine =-.
Vernon
August 23, 2009
Great post, it’s nice how you went through to show all the code like you did. We recently put up a list of the 8 best jQuery tooltip plugins if anyone’s interested: http://choosedaily.com/862/8-best-jquery-tooltip-plugins/
.-= Vernon´s last blog ..Top 10 Typography Rules All in One Place =-.
Michael Angrave
August 28, 2009
I’ve used Qtip before, and found it very easy to implement. Good reference post, would certainly like to see more of your JQuery recommendations.
.-= Michael Angrave´s last blog ..Web Design Techniques: Creating a Date Box for WordPress =-.
Sam Logan
August 28, 2009
Great article, I have used jquery tooltip and qtip before and they were both very straight forward and easy to integrate.
erkasoft
September 7, 2009
nice article, thank you for sharing.
Mahmudur Rahman
September 8, 2009
jQuery Tooltip Plugins seems very effective plugin, thanks for shearing this nice post….
Brian Williamson
February 9, 2010
Many thanks for taking the time to share this, a great help!
Annanicloe
February 22, 2010
I don’t usually reply on articles I read but I have to say this was just great. Keep up the good work.
Barbara Borowitz
February 25, 2010
An additional tool for creating jQuery Tooltips that you might want to check out is Likno Web Tooltips Builder:
http://www.likno.com/jquery-tooltips/index.php
Terrell
May 8, 2010
That’s a good article about A Roundup of Quality jQuery Tooltip Plugins | MyInkBlog. Thanks for the info.
Web Design
May 12, 2010
Great article! I find Qtip so great, I shall also check Barbara’s Likno tool to see what’s with it. :)
Cheers!