【发布时间】:2014-04-06 08:01:04
【问题描述】:
我想为每个具有data-custom-tooltipset 的元素创建一个简单的 jQuery 自定义工具提示插件。所以,类似:
<a href= . . . " data-custom-tooltip="This is my tooltip Text">Hhahaha</a>
或
<button data-custom-tooltip="This is my tooltip for the button Tex">Haha Button :) </button >
因此,仅当data-custom-tooltip 为NOT 为空时,才会触发显示工具提示的功能。
足够接近这个:jQuery selectors on custom data attributes using HTML5
【问题讨论】:
-
问题是:显示工具提示的功能是什么,所以只有在 data-custom-tooltip 不为空时才会触发它??
标签: javascript jquery