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