【发布时间】:2014-10-01 04:58:30
【问题描述】:
我正在尝试显示禁用按钮的工具提示。我不确定是否会为禁用元素触发 jquery 事件,但我正在尝试检查是否可以显示禁用项目的工具提示。我的例子是here
<p>Your age:
<input id="age" title="We ask for your age only for statistical purposes.">
</p>
<p>
<input type="button" title="This a test enabled button." value="hover me please">
</p>
<p>
<input type="button" disabled="disabled" title="This a test disabled button." value="hover me please"> </p>
$(function () {
$(document).tooltip({
position: {
my: "center bottom-20",
at: "center top",
using: function (position, feedback) {
$(this).css(position);
$("<div>")
.addClass("arrow")
.addClass(feedback.vertical)
.addClass(feedback.horizontal)
.appendTo(this);
}
}
});
});
【问题讨论】:
标签: jquery jquery-ui tooltip jquery-ui-tooltip