我有一个带有一些输入和文本区域的 html 页面。我希望他们有不同文本的 qTip。
这是我的尝试首先我为每个元素添加一个 qTip,
$('input, textarea').each(function() {
$(this).qtip(
{
content : 'generated', //this is for debug
position : {
my : 'center left',
at : 'center right',
adjust : {
x : 90
}
}
});
});
然后我正在尝试更改这样的 qTip 文本
$("#firstName").qtip('option', 'content.text', 'adwd');
但它不工作。
我试过这个
$("#lastName").qtip({
content : 'text text'
});
这工作正常,但它覆盖了位置