125
rated 0 times
[
129]
[
4]
/ answers: 1 / hits: 5334
/ 10 Years ago, tue, march 4, 2014, 12:00:00
I want to create a simple custom tooltip plugin for jQuery that for every element that has a data-custom-tooltipset
. So, something like :
<a href= . . . data-custom-tooltip=This is my tooltip Text>Hhahaha</a>
OR
<button data-custom-tooltip=This is my tooltip for the button Tex>Haha Button :) </button >
So, the function to display the tooltip would be triggered only if the data-custom-tooltip
is NOT empty.
Close enough to this : jQuery selectors on custom data attributes using HTML5
More From » jquery