BR0kEN- / simpleTooltip

CSS tooltips with position control via JS.
http://firstvector.org/simpleTooltip
MIT License
38 stars 8 forks source link

usage question #8

Closed quasiperfect closed 10 years ago

quasiperfect commented 10 years ago

how can i use simpleTooltip for all links that have a title and title not empty by default i want to have gravity south and the tip to be the title value if the link has data-hint and data-title they should take precedence over specified

for the first part of my problem i tried $('a[title][title!=]').simpleTooltip({shift:'south',tip:$(this).attr('title')});

thanks in advance for any help

BR0kEN- commented 10 years ago

It's very simple.

$('a[title]').simpleTooltip({shift: 'south'});

By the way, plugin was updated few moments ago, so that use the latest version.

Thank for your interest for this project. Best regards, Sergey.