I want to create a simple custom hint plugin for jQuery, which for each item with 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 >
Thus, the tooltip display function is launched only if data-custom-tooltip does NOT matter.
Close enough to that: jQuery selectors for user data attributes using HTML5
javascript jquery
JanvierDesigns
source share